From d22606dc078bbd618d2563a552a62cd4f46ac682 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Wed, 10 Jan 2018 16:06:18 +0100 Subject: include: Add version header This moves the version definition for Ouroboros into its own header file, which is generated by CMake and installed on the system. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- include/ouroboros/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/ouroboros/CMakeLists.txt') diff --git a/include/ouroboros/CMakeLists.txt b/include/ouroboros/CMakeLists.txt index e94d5c6c..d3b6e847 100644 --- a/include/ouroboros/CMakeLists.txt +++ b/include/ouroboros/CMakeLists.txt @@ -1,3 +1,6 @@ +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/version.h.in" + "${CMAKE_CURRENT_BINARY_DIR}/version.h" @ONLY) + set(HEADER_FILES cacep.h cdefs.h @@ -8,7 +11,9 @@ set(HEADER_FILES ipcp.h irm.h proto.h - qos.h) + qos.h + ${CMAKE_CURRENT_BINARY_DIR}/version.h + ) install(FILES ${HEADER_FILES} DESTINATION usr/include/ouroboros) -- cgit v1.2.3