From 94f4151db0a2bad96072efc5c1e4e6e027e73a5a Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 29 Aug 2021 17:37:35 +0200 Subject: [PATCH] add: cmake message generate header files --- CMakeLists.txt | 1 + libs/spandisc/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a44635b..5927d0f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,7 @@ set(PROJECT_VERSION_PATCH 0) set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}") file(GLOB SOURCES src/*.c) +message("Generating header file: ${CMAKE_CURRENT_BINARY_DIR}/src/config_discspan.h") configure_file(${CMAKE_CURRENT_LIST_DIR}/src/config_discspan.h.in ${CMAKE_CURRENT_BINARY_DIR}/src/config_discspan.h) include_directories(${CMAKE_CURRENT_BINARY_DIR}/src) diff --git a/libs/spandisc/CMakeLists.txt b/libs/spandisc/CMakeLists.txt index 40f0db0..a655aae 100644 --- a/libs/spandisc/CMakeLists.txt +++ b/libs/spandisc/CMakeLists.txt @@ -15,6 +15,7 @@ set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT option(BUILD_SHARED_LIBS "build shared libs" ON) +message("Generating header file: ${CMAKE_CURRENT_BINARY_DIR}/include/config_spandisc.h") configure_file(${CMAKE_CURRENT_LIST_DIR}/include/config_spandisc.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/config_spandisc.h) -- 2.39.5