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