diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e5c64f6..80006e3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,9 +1,12 @@ include(GNUInstallDirs) +add_library(${PROJECT_NAME}) + file(GLOB_RECURSE sources_lib *.cpp) file(GLOB_RECURSE headers_lib ../include/*.hpp) - -add_library(${PROJECT_NAME} "${sources_lib}" "${headers_lib}") +target_sources(${PROJECT_NAME} + PRIVATE "${sources_lib}" + PUBLIC "${headers_lib}") set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION} |