From 49584ec3373ffd8b553284a658e238633b1a2700 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Fri, 13 Sep 2019 11:27:43 +0200 Subject: [PATCH] CMake Build: Add app_version.h to Devel package Fixes: QTCREATORBUG-22802 Change-Id: I7616eab534127c806093240de430fe060d8bd0df Reviewed-by: Eike Ziller --- src/CMakeLists.txt | 4 +++- src/app/CMakeLists.txt | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c0a0b979f4b..a04ed8a959b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,7 @@ add_library(app_version INTERFACE) -target_include_directories(app_version INTERFACE $) +target_include_directories(app_version + INTERFACE $ + INTERFACE $) install(TARGETS app_version EXPORT QtCreator) add_subdirectory(libs) diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt index 0ef67b2943c..dfb38ddd4bb 100644 --- a/src/app/CMakeLists.txt +++ b/src/app/CMakeLists.txt @@ -1,5 +1,11 @@ configure_file(app_version.h.cmakein app_version.h ESCAPE_QUOTES) +install( + FILES ${CMAKE_CURRENT_BINARY_DIR}/app_version.h + DESTINATION include/src/app + COMPONENT Devel EXCLUDE_FROM_ALL +) + add_qtc_executable(qtcreator DEFINES IDE_LIBRARY_BASENAME=\"${IDE_LIBRARY_BASE_PATH}\" DEPENDS Aggregation ExtensionSystem Qt5::Core Qt5::Widgets Utils shared_qtsingleapplication app_version