diff options
Diffstat (limited to 'examples/corelib/tools')
-rw-r--r-- | examples/corelib/tools/contiguouscache/CMakeLists.txt | 34 | ||||
-rw-r--r-- | examples/corelib/tools/customtype/CMakeLists.txt | 34 | ||||
-rw-r--r-- | examples/corelib/tools/customtypesending/CMakeLists.txt | 36 |
3 files changed, 67 insertions, 37 deletions
diff --git a/examples/corelib/tools/contiguouscache/CMakeLists.txt b/examples/corelib/tools/contiguouscache/CMakeLists.txt index 68afb7221d..62214a46d5 100644 --- a/examples/corelib/tools/contiguouscache/CMakeLists.txt +++ b/examples/corelib/tools/contiguouscache/CMakeLists.txt @@ -1,16 +1,26 @@ # Generated from contiguouscache.pro. -##################################################################### -## contiguouscache Binary: -##################################################################### +cmake_minimum_required(VERSION 3.14) +project(contiguouscache LANGUAGES CXX) -add_qt_executable(contiguouscache - GUI - OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/tools/contiguouscache" - INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/tools/contiguouscache" - SOURCES - main.cpp - randomlistmodel.cpp randomlistmodel.h - LIBRARIES - Qt::Widgets +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 Widgets) + +add_executable(contiguouscache WIN32 MACOSX_BUNDLE + main.cpp + randomlistmodel.cpp randomlistmodel.h +) +target_link_libraries(contiguouscache PUBLIC + Qt::Widgets +) +install(TARGETS contiguouscache + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" ) diff --git a/examples/corelib/tools/customtype/CMakeLists.txt b/examples/corelib/tools/customtype/CMakeLists.txt index e26846da82..394534f5ee 100644 --- a/examples/corelib/tools/customtype/CMakeLists.txt +++ b/examples/corelib/tools/customtype/CMakeLists.txt @@ -1,16 +1,26 @@ # Generated from customtype.pro. -##################################################################### -## customtype Binary: -##################################################################### +cmake_minimum_required(VERSION 3.14) +project(customtype LANGUAGES CXX) -add_qt_executable(customtype - GUI - OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/tools/customtype" - INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/tools/customtype" - SOURCES - main.cpp - message.cpp message.h - LIBRARIES - Qt::Widgets +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 Widgets) + +add_executable(customtype WIN32 MACOSX_BUNDLE + main.cpp + message.cpp message.h +) +target_link_libraries(customtype PUBLIC + Qt::Widgets +) +install(TARGETS customtype + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" ) diff --git a/examples/corelib/tools/customtypesending/CMakeLists.txt b/examples/corelib/tools/customtypesending/CMakeLists.txt index a069f73507..53a39c57ce 100644 --- a/examples/corelib/tools/customtypesending/CMakeLists.txt +++ b/examples/corelib/tools/customtypesending/CMakeLists.txt @@ -1,17 +1,27 @@ # Generated from customtypesending.pro. -##################################################################### -## customtypesending Binary: -##################################################################### +cmake_minimum_required(VERSION 3.14) +project(customtypesending LANGUAGES CXX) -add_qt_executable(customtypesending - GUI - OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/tools/customtypesending" - INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/tools/customtypesending" - SOURCES - main.cpp - message.cpp message.h - window.cpp window.h - LIBRARIES - Qt::Widgets +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 Widgets) + +add_executable(customtypesending WIN32 MACOSX_BUNDLE + main.cpp + message.cpp message.h + window.cpp window.h +) +target_link_libraries(customtypesending PUBLIC + Qt::Widgets +) +install(TARGETS customtypesending + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" ) |