We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11cc7fc commit 5315b86Copy full SHA for 5315b86
1 file changed
src/CMakeLists.txt
@@ -18,7 +18,7 @@ target_compile_definitions(
18
)
19
20
# include path
21
-target_include_directories(libchen PUBLIC ${CMAKE_SOURCE_DIR}/include) # todo maybe PROJECT_SOURCE_DIR
+target_include_directories(libchen PUBLIC ${PROJECT_SOURCE_DIR}/include)
22
23
# source codes
24
file(GLOB_RECURSE CHEN_SRC *.cpp) # I hate to list all the files
@@ -36,7 +36,7 @@ install(
36
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
37
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
38
39
-install(DIRECTORY ${CMAKE_SOURCE_DIR}/include/chen DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/chen DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
40
41
# code coverage
42
option(CHEN_CODE_COVERAGE "Enable libchen code coverage." OFF)
0 commit comments