diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 05cdccac..cfccc6fb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,3 +1,8 @@ +configure_file( + pumipic_version.hpp.in + pumipic_version.hpp +) + set(HEADERS pumipic_adjacency.hpp pumipic_adjacency.tpp @@ -11,6 +16,7 @@ set(HEADERS pumipic_input.hpp pumipic_kktypes.hpp pumipic_profiling.hpp + ${CMAKE_CURRENT_BINARY_DIR}/pumipic_version.hpp ) set(SOURCES @@ -25,11 +31,6 @@ set(SOURCES pumipic_file.cpp ) -configure_file( - pumipic_version.hpp.in - pumipic_version.hpp -) - add_library(pumipic-core ${SOURCES}) target_include_directories(pumipic-core INTERFACE $