diff options
Diffstat (limited to 'examples/corelib/bindableproperties/subscription/CMakeLists.txt')
-rw-r--r-- | examples/corelib/bindableproperties/subscription/CMakeLists.txt | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/examples/corelib/bindableproperties/subscription/CMakeLists.txt b/examples/corelib/bindableproperties/subscription/CMakeLists.txt new file mode 100644 index 0000000000..a5480e03c7 --- /dev/null +++ b/examples/corelib/bindableproperties/subscription/CMakeLists.txt @@ -0,0 +1,53 @@ +cmake_minimum_required(VERSION 3.16) +project(subscription LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +if(NOT DEFINED INSTALL_EXAMPLESDIR) + set(INSTALL_EXAMPLESDIR "examples") +endif() + +set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/bindableproperties/subscription") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Widgets) + +qt_add_executable(subscription + ../shared/subscriptionwindow.cpp ../shared/subscriptionwindow.h ../shared/subscriptionwindow.ui + main.cpp + subscription.cpp subscription.h + user.cpp user.h +) +target_link_libraries(subscription PUBLIC + Qt::Core + Qt::Gui + Qt::Widgets +) + + +# Resources: +set(countries_resource_files + "../shared/finland.png" + "../shared/germany.png" + "../shared/norway.png" +) + +qt6_add_resources(subscription "countries" + PREFIX + "/" + BASE + "../shared" + FILES + ${countries_resource_files} +) + +install(TARGETS subscription + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) |