Avoid globbing sources

Helps to automatically re-run cmake if new files added.
This commit is contained in:
Alexey Klimkin 2021-01-21 11:16:06 -08:00
parent 43637b877a
commit ee410664f8
2 changed files with 9 additions and 3 deletions

View File

@ -12,9 +12,6 @@ include(GNUInstallDirs)
find_package(Threads REQUIRED)
find_package(libelfin REQUIRED)
file(GLOB_RECURSE sources libcoz/*.cpp)
file(GLOB_RECURSE headers include/*.h)
install(PROGRAMS coz DESTINATION bin)
install(FILES LICENSE.md DESTINATION licenses)

View File

@ -1,3 +1,12 @@
set(sources
inspect.cpp
libcoz.cpp
perf.cpp
profiler.cpp
real.cpp)
set(headers
${PROJECT_SOURCE_DIR}/include/coz.h)
add_library(coz MODULE ${sources})
set_target_properties(coz PROPERTIES PUBLIC_HEADER "${headers}")
if(CONAN_PACKAGE_VERSION)