diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c6965f..0eea7d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -188,7 +188,28 @@ add_subdirectory(lib/da_threading EXCLUDE_FROM_ALL) endif(NOT CMAKE_EXE_LINKER_FLAGS MATCHES "-fuse-ld=lld") endif() -add_executable(fortuna main.cpp generator.cpp generator.h fortuna.cpp fortuna.h accumulator.cpp accumulator.h pool.cpp pool.h event_adder.h event_adder_impl.h event_scheduler.h entropy_src.h urandom_entropy_src.h do_task.cpp do_task.h util.h seed_file_management.h) + +set(FORTUNA_SOURCES + main.cpp + fortuna.cpp + generator.cpp + accumulator.cpp + pool.cpp + do_task.cpp) +set(FORTUNA_HEADERS + fortuna.h + generator.h + accumulator.h + pool.h + do_task.h + event_adder.h + event_adder_impl.h + event_scheduler.h + entropy_src.h + urandom_entropy_src.h + util.h + seed_file_management.h) +add_executable(fortuna ${FORTUNA_SOURCES} ${FORTUNA_HEADERS}) # ref: https://cmake.org/pipermail/cmake/2016-May/063400.html target_link_libraries(fortuna PRIVATE cryptopp