diff options
| author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-01-31 11:43:22 +0100 |
|---|---|---|
| committer | Simon Hausmann <simon.hausmann@qt.io> | 2020-02-07 18:19:51 +0000 |
| commit | 1c571e5fe7a31e7accb04b37a1d3bd7c8855d05c (patch) | |
| tree | 65241f1258136d0c45bcaa3b51e1393a2f595e6a /examples/qtconcurrent | |
| parent | 2145cdc54d5812793310f7e3b3709bfa2648bd50 (diff) | |
| parent | 4e7af2061e8c323b2a21f0549643a2cfab191664 (diff) | |
Merge "Merge remote-tracking branch 'origin/wip/cmake' into dev"
Diffstat (limited to 'examples/qtconcurrent')
| -rw-r--r-- | examples/qtconcurrent/CMakeLists.txt | 9 | ||||
| -rw-r--r-- | examples/qtconcurrent/imagescaling/CMakeLists.txt | 30 | ||||
| -rw-r--r-- | examples/qtconcurrent/map/.prev_CMakeLists.txt | 26 | ||||
| -rw-r--r-- | examples/qtconcurrent/map/CMakeLists.txt | 28 | ||||
| -rw-r--r-- | examples/qtconcurrent/progressdialog/CMakeLists.txt | 29 | ||||
| -rw-r--r-- | examples/qtconcurrent/runfunction/CMakeLists.txt | 29 | ||||
| -rw-r--r-- | examples/qtconcurrent/wordcount/CMakeLists.txt | 29 |
7 files changed, 180 insertions, 0 deletions
diff --git a/examples/qtconcurrent/CMakeLists.txt b/examples/qtconcurrent/CMakeLists.txt new file mode 100644 index 00000000000..13cfed87734 --- /dev/null +++ b/examples/qtconcurrent/CMakeLists.txt @@ -0,0 +1,9 @@ +if(TARGET Qt::Gui) + add_subdirectory(map) +endif() +if(TARGET Qt::Widgets) + add_subdirectory(imagescaling) + add_subdirectory(progressdialog) + add_subdirectory(runfunction) + add_subdirectory(wordcount) +endif() diff --git a/examples/qtconcurrent/imagescaling/CMakeLists.txt b/examples/qtconcurrent/imagescaling/CMakeLists.txt new file mode 100644 index 00000000000..5d487ab409c --- /dev/null +++ b/examples/qtconcurrent/imagescaling/CMakeLists.txt @@ -0,0 +1,30 @@ +# Generated from imagescaling.pro. + +cmake_minimum_required(VERSION 3.14) +project(imagescaling LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Concurrent) +find_package(Qt6 COMPONENTS Widgets) + +add_qt_gui_executable(imagescaling + imagescaling.cpp imagescaling.h + main.cpp +) +target_link_libraries(imagescaling PUBLIC + Qt::Concurrent + Qt::Widgets +) + +install(TARGETS imagescaling + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/qtconcurrent/map/.prev_CMakeLists.txt b/examples/qtconcurrent/map/.prev_CMakeLists.txt new file mode 100644 index 00000000000..cd53409ec85 --- /dev/null +++ b/examples/qtconcurrent/map/.prev_CMakeLists.txt @@ -0,0 +1,26 @@ +# Generated from map.pro. + +cmake_minimum_required(VERSION 3.14) +project(mapdemo LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Concurrent) + +add_executable(mapdemo + main.cpp +) +target_link_libraries(mapdemo PUBLIC + Qt::Concurrent +) + +install(TARGETS mapdemo + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/qtconcurrent/map/CMakeLists.txt b/examples/qtconcurrent/map/CMakeLists.txt new file mode 100644 index 00000000000..1707825b8f1 --- /dev/null +++ b/examples/qtconcurrent/map/CMakeLists.txt @@ -0,0 +1,28 @@ +# Generated from map.pro. + +cmake_minimum_required(VERSION 3.14) +project(mapdemo LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Concurrent) +find_package(Qt6 COMPONENTS Gui) # special case + +add_executable(mapdemo + main.cpp +) +target_link_libraries(mapdemo PUBLIC + Qt::Concurrent + Qt::Gui # special case +) +install(TARGETS mapdemo + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/qtconcurrent/progressdialog/CMakeLists.txt b/examples/qtconcurrent/progressdialog/CMakeLists.txt new file mode 100644 index 00000000000..f9e7980b63f --- /dev/null +++ b/examples/qtconcurrent/progressdialog/CMakeLists.txt @@ -0,0 +1,29 @@ +# Generated from progressdialog.pro. + +cmake_minimum_required(VERSION 3.14) +project(progressdialog LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Concurrent) +find_package(Qt6 COMPONENTS Widgets) + +add_executable(progressdialog + main.cpp +) +target_link_libraries(progressdialog PUBLIC + Qt::Concurrent + Qt::Widgets +) + +install(TARGETS progressdialog + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/qtconcurrent/runfunction/CMakeLists.txt b/examples/qtconcurrent/runfunction/CMakeLists.txt new file mode 100644 index 00000000000..de205532128 --- /dev/null +++ b/examples/qtconcurrent/runfunction/CMakeLists.txt @@ -0,0 +1,29 @@ +# Generated from runfunction.pro. + +cmake_minimum_required(VERSION 3.14) +project(runfunction LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Concurrent) +find_package(Qt6 COMPONENTS Widgets) + +add_executable(runfunction + main.cpp +) +target_link_libraries(runfunction PUBLIC + Qt::Concurrent + Qt::Widgets +) + +install(TARGETS runfunction + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/qtconcurrent/wordcount/CMakeLists.txt b/examples/qtconcurrent/wordcount/CMakeLists.txt new file mode 100644 index 00000000000..e4afbaa4c58 --- /dev/null +++ b/examples/qtconcurrent/wordcount/CMakeLists.txt @@ -0,0 +1,29 @@ +# Generated from wordcount.pro. + +cmake_minimum_required(VERSION 3.14) +project(wordcount LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Concurrent) +find_package(Qt6 COMPONENTS Widgets) + +add_executable(wordcount + main.cpp +) +target_link_libraries(wordcount PUBLIC + Qt::Concurrent + Qt::Widgets +) + +install(TARGETS wordcount + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) |
