diff options
Diffstat (limited to 'examples/corelib/tools/contiguouscache/CMakeLists.txt')
-rw-r--r-- | examples/corelib/tools/contiguouscache/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/corelib/tools/contiguouscache/CMakeLists.txt b/examples/corelib/tools/contiguouscache/CMakeLists.txt index 3adb033c49..1e7a3350c2 100644 --- a/examples/corelib/tools/contiguouscache/CMakeLists.txt +++ b/examples/corelib/tools/contiguouscache/CMakeLists.txt @@ -9,8 +9,10 @@ set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) -set(INSTALL_EXAMPLEDIR "examples") +set(INSTALL_EXAMPLEDIR "examples/corelib/tools/contiguouscache") +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) add_qt_gui_executable(contiguouscache @@ -18,8 +20,11 @@ add_qt_gui_executable(contiguouscache randomlistmodel.cpp randomlistmodel.h ) target_link_libraries(contiguouscache PUBLIC + Qt::Core + Qt::Gui Qt::Widgets ) + install(TARGETS contiguouscache RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" |