From 5f68a664c5c72324c6d3fccd3077152e7736e522 Mon Sep 17 00:00:00 2001 From: Russ Date: Tue, 26 Mar 2024 14:07:38 +1100 Subject: [PATCH] fix: set target_include_directory --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e2e6485..294ea22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,8 +33,6 @@ option (pfs_BUILD_TESTS "Build tests" ON) add_compile_options (-std=c++11 -Wall -Wextra -pedantic -Werror) -include_directories (include) - set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/out) set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) @@ -45,6 +43,11 @@ aux_source_directory (${pfs_ROOT_SOURCE_DIR}/parsers pfs_PARSERS_SOURCES) set (SOURCES ${pfs_ROOT_SOURCES} ${pfs_PARSERS_SOURCES}) add_library (pfs ${pfs_SHARED_OR_STATIC} ${SOURCES}) +target_include_directories( + pfs PUBLIC + $ + $ +) if (pfs_BUILD_COVERAGE) set (pfs_BUILD_COVERAGE_FLAGS -O0 --coverage)