##############################################################################
#
#  $Id$
#
#  Copyright 2015 Andreas Stewering
#
#  This file is part of the canrestbus library.
#
#  The canrestbus library is free software: you can redistribute it and/or modify
#  it under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or (at your
#  option) any later version.
#
#  The canrestbus library is distributed in the hope that it will be useful, but
#  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
#  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
#  License for more details.
#
#  You should have received a copy of the GNU Lesser General Public License
#  along with the canrestbus library. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -g")

INCLUDE_DIRECTORIES(
    ${PROJECT_BINARY_DIR}
    ${PROJECT_SOURCE_DIR}
    ${PROJECT_SOURCE_DIR}/src
    ${PROJECT_INCLUDE_DIR}
    )

LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/src)

ADD_EXECUTABLE(ccpsim 
  applmain.c applmain.h
  ecu.c ecu.h
  ccp.c ccp.h
  ccppar.h
  )
TARGET_LINK_LIBRARIES(ccpsim ${PROJECT_NAME} rt m pthread ${LIBXML2_LIBRARIES})
ADD_TEST(ccpsim ccpsim)

