forked from qt-creator/qt-creator
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:
@@ -1,5 +1,7 @@
|
||||
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)
|
||||
|
||||
add_subdirectory(libs)
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user