# HG changeset patch # User anatofuz # Date 1571123658 -32400 # Node ID d33e6b5adb57eefe31633fb1a9adde437cea9f62 # Parent a4307abefd0b0991911e9912ba2671f2d62bb2ff tweak include_directories diff -r a4307abefd0b -r d33e6b5adb57 src/CMakeLists.txt --- a/src/CMakeLists.txt Mon Oct 14 22:48:39 2019 +0900 +++ b/src/CMakeLists.txt Tue Oct 15 16:14:18 2019 +0900 @@ -50,7 +50,6 @@ set (_Gears_CBC_SOURCES) set (_Gears_CSOURCES) - include_directories("${CMAKE_BINARY_DIR}" ".") foreach(i ${_Gears_SOURCES}) if (${i} MATCHES "\\.cbc") string(REGEX REPLACE "(.*).cbc" "c/\\1.c" j ${i}) @@ -85,6 +84,8 @@ COMMAND "cd" "CMakeFiles/kernel.dir" ";" "perl" "${CMAKE_SOURCE_DIR}/gearsTools/generate_context.pl" "-o" ${_Gears_TARGET} ${_Gears_CBC_SOURCES} ) # add_executable(${_Gears_TARGET} ${_Gears_CBC_SOURCES} ${_Gears_CSOURCES} ${CMAKE_KERNEL_DIR}/c/${_Gears_TARGET}-context.c ) + include_directories(${_Gears_TARGET} PUBLIC ".") + include_directories(${_Gears_TARGET} PUBLIC ${CMAKE_KERNEL_DIR_C}) add_executable(${_Gears_TARGET} ${CMAKE_KERNEL_DIR_C} ${_Gears_CBC_SOURCES} ${_Gears_CSOURCES} ${CMAKE_KERNEL_DIR}/c/${_Gears_TARGET}-context.c ) # target_link_libraries(${_Gears_TARGET} m pthread) endmacro()