File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,6 @@ option (pfs_BUILD_TESTS "Build tests" ON)
33
33
34
34
add_compile_options (-std=c++11 -Wall -Wextra -pedantic -Werror)
35
35
36
- include_directories (include )
37
-
38
36
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /out)
39
37
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib)
40
38
set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib)
@@ -45,6 +43,11 @@ aux_source_directory (${pfs_ROOT_SOURCE_DIR}/parsers pfs_PARSERS_SOURCES)
45
43
set (SOURCES ${pfs_ROOT_SOURCES} ${pfs_PARSERS_SOURCES} )
46
44
47
45
add_library (pfs ${pfs_SHARED_OR_STATIC} ${SOURCES} )
46
+ target_include_directories (
47
+ pfs PUBLIC
48
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >
49
+ $<INSTALL_INTERFACE:include >
50
+ )
48
51
49
52
if (pfs_BUILD_COVERAGE)
50
53
set (pfs_BUILD_COVERAGE_FLAGS -O0 --coverage)
You can’t perform that action at this time.
0 commit comments