diff options
Diffstat (limited to 'examples/qtconcurrent/map')
-rw-r--r-- | examples/qtconcurrent/map/.prev_CMakeLists.txt | 26 | ||||
-rw-r--r-- | examples/qtconcurrent/map/CMakeLists.txt | 39 |
2 files changed, 49 insertions, 16 deletions
diff --git a/examples/qtconcurrent/map/.prev_CMakeLists.txt b/examples/qtconcurrent/map/.prev_CMakeLists.txt new file mode 100644 index 0000000000..48a18038ad --- /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(Qt5 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 index 147b91236b..a5bac9a973 100644 --- a/examples/qtconcurrent/map/CMakeLists.txt +++ b/examples/qtconcurrent/map/CMakeLists.txt @@ -1,20 +1,27 @@ # Generated from map.pro. -##################################################################### -## mapdemo Binary: -##################################################################### +cmake_minimum_required(VERSION 3.14) +project(mapdemo LANGUAGES CXX) -add_qt_executable(mapdemo - GUI - OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/map" - INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/map" - SOURCES - main.cpp - LIBRARIES - Qt::Concurrent - Qt::Gui # special case -) +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt5 COMPONENTS Concurrent) +find_package(Qt5 COMPONENTS Gui) # special case -#### Keys ignored in scope 1:.:map.pro:<NONE>: -# CONFIG = "-app_bundle" -# TEMPLATE = "app" +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}" +) |