Modified library for new test cases to corrupt data - related to the bug fix for...
[profile/ivi/dlt-daemon.git] / CMakeLists.txt
index ae0bab6..539edd6 100755 (executable)
@@ -75,9 +75,10 @@ option(WITH_DLT_SHM_ENABLE    "Set to OFF to use FIFO as IPC from user to daemon
 option(WITH_DOC               "Set to ON to build documentation target"              OFF )\r
 option(WITH_MAN               "Set to OFF to skip building of man pages"             ON )\r
 option(WITH_CHECK_CONFIG_FILE "Set to ON to create a configure file of CheckIncludeFiles and CheckFunctionExists " OFF )\r
-option(WITH_TESTSCRIPTS       "Set to on to run CMakeLists.txt in testscripts"       OFF )\r
-option(WITH_SYSTEMD           "Set to on to run CMakeLists.txt in systemd"           OFF )\r
+option(WITH_TESTSCRIPTS       "Set to ON to run CMakeLists.txt in testscripts"       OFF )\r
+option(WITH_SYSTEMD           "Set to ON to run CMakeLists.txt in systemd"           OFF )\r
 option(WITH_GPROF             "Set -pg to compile flags"                             OFF )\r
+option(WITH_DLTTEST                      "Set to ON to build with modifications to test Uuser-Daemon communication with corrupt messages" OFF)\r
 \r
 # RPM settings\r
 set( GENIVI_RPM_RELEASE "1")#${DLT_REVISION}")\r
@@ -94,6 +95,10 @@ include_directories(
     ${CMAKE_SOURCE_DIR}/src/daemon/\r
 )\r
 \r
+if(WITH_DLTTEST)\r
+       add_definitions( -DDLT_TEST_ENABLE)\r
+endif(WITH_DLTTEST)\r
+\r
 if(WITH_DLT_SHM_ENABLE)\r
     add_definitions( -DDLT_SHM_ENABLE)\r
 endif(WITH_DLT_SHM_ENABLE)\r
@@ -116,6 +121,7 @@ message( STATUS "WITH_TESTSCRIPTS = ${WITH_TESTSCRIPTS}" )
 message( STATUS "WITH_SYSTEMD = ${WITH_SYSTEMD}" )\r
 message( STATUS "WITH_GPROF = ${WITH_GPROF}" )\r
 message( STATUS "WITH_MAN = ${WITH_MAN}" )\r
+message( STATUS "WITH_DLTTEST = ${WITH_DLTTEST}" )\r
 message( STATUS "BUILD_SHARED_LIBS = ${BUILD_SHARED_LIBS}" )\r
 message( STATUS "CMAKE_INSTALL_PREFIX = ${CMAKE_INSTALL_PREFIX}" )\r
 message( STATUS "CMAKE_BUILD_TYPE = ${CMAKE_BUILD_TYPE}" )\r