From 7f5f1f9e04bae00e7d0df4f9b368fa37a7dad266 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 12 Mar 2022 02:00:05 +0100 Subject: [PATCH] kraken: add 'config.h' --- src/CMakeLists.txt | 2 ++ src/config.h.in | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 src/config.h.in diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e7ca454..378cd00 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -5,6 +5,8 @@ add_subdirectory(csv) add_subdirectory(parse) add_subdirectory(utils) +configure_file(config.h.in config.h) + target_link_libraries(kraken PRIVATE csv parse diff --git a/src/config.h.in b/src/config.h.in new file mode 100644 index 0000000..ee2ee87 --- /dev/null +++ b/src/config.h.in @@ -0,0 +1,3 @@ +#pragma once + +#cmakedefine CMAKE_SOURCE_DIR "@CMAKE_SOURCE_DIR@"