File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,6 @@ include(cmake/gtest.cmake)
47
47
############################## Headers ##############################
48
48
49
49
message ( STATUS "PPC step: Setup headers" )
50
- include_directories (3rdparty )
51
- include_directories (modules )
52
- include_directories (tasks )
53
50
54
51
############################## Modules ##############################
55
52
Original file line number Diff line number Diff line change 2
2
function (ppc_add_test test_name test_src USE_FLAG )
3
3
if (${USE_FLAG} )
4
4
add_executable (${test_name} "${PROJECT_SOURCE_DIR} /${test_src} " )
5
+ target_include_directories (${test_name}
6
+ PUBLIC
7
+ ${CMAKE_SOURCE_DIR} /modules
8
+ ${CMAKE_SOURCE_DIR} /tasks
9
+ ${CMAKE_SOURCE_DIR} /3rdparty
10
+ )
5
11
enable_testing ()
6
12
add_test (NAME ${test_name} COMMAND ${test_name} )
7
13
install (TARGETS ${test_name} RUNTIME DESTINATION bin )
@@ -62,6 +68,11 @@ function(setup_implementation)
62
68
else ()
63
69
add_library (${LIB_NAME} INTERFACE ${ALL_SOURCES} )
64
70
endif ()
71
+ target_include_directories (${LIB_NAME}
72
+ PUBLIC
73
+ ${CMAKE_SOURCE_DIR} /modules
74
+ ${CMAKE_SOURCE_DIR} /tasks
75
+ )
65
76
66
77
# link core module
67
78
target_link_libraries (${LIB_NAME} PUBLIC core_module_lib )
Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ endforeach()
22
22
project (${exec_func_lib} )
23
23
add_library (${exec_func_lib} STATIC ${LIB_SOURCE_FILES} )
24
24
set_target_properties (${exec_func_lib} PROPERTIES LINKER_LANGUAGE CXX )
25
+ target_include_directories (${exec_func_lib}
26
+ PUBLIC
27
+ ${CMAKE_SOURCE_DIR} /modules
28
+ )
25
29
26
30
add_dependencies (${exec_func_lib} ppc_libenvpp )
27
31
target_link_directories (${exec_func_lib} PUBLIC "${CMAKE_BINARY_DIR} /ppc_libenvpp/install/lib" )
@@ -63,6 +67,11 @@ target_include_directories(stb_image PUBLIC ${CMAKE_SOURCE_DIR}/3rdparty/stb)
63
67
target_link_libraries (${exec_func_lib} PUBLIC stb_image )
64
68
65
69
add_executable (${exec_func_tests} ${FUNC_TESTS_SOURCE_FILES} )
70
+ target_include_directories (${exec_func_tests}
71
+ PUBLIC
72
+ ${CMAKE_SOURCE_DIR} /modules
73
+ ${CMAKE_SOURCE_DIR} /3rdparty
74
+ )
66
75
67
76
target_link_libraries (${exec_func_tests} PUBLIC ${exec_func_lib} )
68
77
You can’t perform that action at this time.
0 commit comments