CMake Build: Add app_version.h to Devel package

Fixes: QTCREATORBUG-22802
Change-Id: I7616eab534127c806093240de430fe060d8bd0df
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Cristian Adam
2019-09-13 11:27:43 +02:00
parent e38361b5a8
commit 49584ec337
2 changed files with 9 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
add_library(app_version INTERFACE) add_library(app_version INTERFACE)
target_include_directories(app_version INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>) target_include_directories(app_version
INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
INTERFACE $<INSTALL_INTERFACE:include/src>)
install(TARGETS app_version EXPORT QtCreator) install(TARGETS app_version EXPORT QtCreator)
add_subdirectory(libs) add_subdirectory(libs)

View File

@@ -1,5 +1,11 @@
configure_file(app_version.h.cmakein app_version.h ESCAPE_QUOTES) 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 add_qtc_executable(qtcreator
DEFINES IDE_LIBRARY_BASENAME=\"${IDE_LIBRARY_BASE_PATH}\" DEFINES IDE_LIBRARY_BASENAME=\"${IDE_LIBRARY_BASE_PATH}\"
DEPENDS Aggregation ExtensionSystem Qt5::Core Qt5::Widgets Utils shared_qtsingleapplication app_version DEPENDS Aggregation ExtensionSystem Qt5::Core Qt5::Widgets Utils shared_qtsingleapplication app_version