mirror of
https://github.com/plasma-umass/coz.git
synced 2024-10-26 07:39:17 +03:00
Avoid globbing sources
Helps to automatically re-run cmake if new files added.
This commit is contained in:
parent
43637b877a
commit
ee410664f8
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user