Allow to build examples as standalone project
Create CMake config files which can be used from the very same CMake project. These CMake config files simply do not create any targets, controlled via the QT_NO_CREATE_TARGETS. This patch also allows to build qtbase.git:examples as a standalone project, against an already-built Qt. Ran this: ag -s "QT " examples -l -0 | xargs -0 -n 1 .../util/cmake/pro2cmake.py --is-example Task-number: QTBUG-74713 Change-Id: I44cce5a4048618b30f890c5b789592c227a8b47d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
ace5495870
commit
99539a2894
@ -121,6 +121,12 @@ qt_copy_or_install(FILES
|
||||
cmake/QtPluginDependencies.cmake.in
|
||||
DESTINATION "${__GlobalConfig_install_dir}"
|
||||
)
|
||||
if(QT_WILL_INSTALL)
|
||||
# NOTE: QtFeature.cmake is included by the Qt module config files unconditionally
|
||||
# In a prefix build, QtFeature.cmake is not copied to the build dir by default
|
||||
# Thus do it explicitly in that case so we can use the module config files in the examples
|
||||
file(COPY cmake/QtFeature.cmake DESTINATION "${__GlobalConfig_install_dir}")
|
||||
endif()
|
||||
|
||||
|
||||
# TODO: Check whether this is the right place to install these
|
||||
|
@ -1232,7 +1232,7 @@ set(QT_CMAKE_EXPORT_NAMESPACE ${QT_CMAKE_EXPORT_NAMESPACE})")
|
||||
DESTINATION "${config_install_dir}"
|
||||
COMPONENT Devel
|
||||
)
|
||||
qt_non_prefix_copy(COPY ${extra_cmake_files} DESTINATION "${config_install_dir}")
|
||||
file(COPY ${extra_cmake_files} DESTINATION "${config_build_dir}")
|
||||
|
||||
set(exported_targets ${target} ${target_private})
|
||||
set(export_name "${INSTALL_CMAKE_NAMESPACE}${target}Targets")
|
||||
|
@ -7,9 +7,16 @@ endif()
|
||||
|
||||
get_filename_component(_qt_cmake_dir "${CMAKE_CURRENT_LIST_DIR}/.." ABSOLUTE)
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@Targets.cmake")
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@VersionlessTargets.cmake")
|
||||
if (NOT QT_NO_CREATE_TARGETS)
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@Targets.cmake")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@VersionlessTargets.cmake")
|
||||
else()
|
||||
# For examples using `find_package(...)` inside their CMakeLists.txt files:
|
||||
# Make CMake's AUTOGEN detect this Qt version properly
|
||||
set_directory_properties(PROPERTIES
|
||||
QT_VERSION_MAJOR @PROJECT_VERSION_MAJOR@
|
||||
QT_VERSION_MINOR @PROJECT_VERSION_MINOR@)
|
||||
endif()
|
||||
|
||||
# if (NOT @INSTALL_CMAKE_NAMESPACE@_FIND_COMPONENTS)
|
||||
# set(@INSTALL_CMAKE_NAMESPACE@_NOT_FOUND_MESSAGE "The Qt package requires at least one component")
|
||||
|
@ -9,14 +9,16 @@ get_filename_component(_import_prefix "${_import_prefix}" REALPATH)
|
||||
@extra_cmake_code@
|
||||
# Extra cmake code end
|
||||
|
||||
# Find required dependencies, if any.
|
||||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@Dependencies.cmake")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@Dependencies.cmake")
|
||||
if (NOT QT_NO_CREATE_TARGETS)
|
||||
# Find required dependencies, if any.
|
||||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@Dependencies.cmake")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@Dependencies.cmake")
|
||||
endif()
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@Targets.cmake")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@VersionlessTargets.cmake")
|
||||
endif()
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@Targets.cmake")
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@VersionlessTargets.cmake")
|
||||
foreach(extra_cmake_include @extra_cmake_includes@)
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/${extra_cmake_include}")
|
||||
endforeach()
|
||||
|
@ -2,11 +2,13 @@
|
||||
|
||||
include(CMakeFindDependencyMacro)
|
||||
|
||||
# Find required dependencies, if any.
|
||||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@Dependencies.cmake")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@Dependencies.cmake")
|
||||
if (NOT QT_NO_CREATE_TARGETS)
|
||||
# Find required dependencies, if any.
|
||||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@Dependencies.cmake")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@Dependencies.cmake")
|
||||
endif()
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@Targets.cmake")
|
||||
endif()
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@Targets.cmake")
|
||||
|
||||
@extra_cmake_statements@
|
||||
|
@ -5,9 +5,11 @@ include(CMakeFindDependencyMacro)
|
||||
get_filename_component(_import_prefix "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
get_filename_component(_import_prefix "${_import_prefix}" REALPATH)
|
||||
|
||||
# Find required dependencies, if any.
|
||||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/@target@Dependencies.cmake")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@target@Dependencies.cmake")
|
||||
endif()
|
||||
if (NOT QT_NO_CREATE_TARGETS)
|
||||
# Find required dependencies, if any.
|
||||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/@target@Dependencies.cmake")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@target@Dependencies.cmake")
|
||||
endif()
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@target@Targets.cmake")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@target@Targets.cmake")
|
||||
endif()
|
||||
|
@ -1,3 +1,25 @@
|
||||
# special case begin
|
||||
cmake_minimum_required(VERSION 3.14.0)
|
||||
|
||||
project(QtBaseExamples LANGUAGES CXX C ASM)
|
||||
|
||||
# Check whether this project is built as part of a Qt build
|
||||
if (CMAKE_PROJECT_NAME STREQUAL "QtBaseExamples")
|
||||
set(QT_STANDALONE_EXAMPLES_BUILD TRUE)
|
||||
endif()
|
||||
|
||||
if (NOT QT_STANDALONE_EXAMPLES_BUILD)
|
||||
# It is part of a Qt build => Use the CMake config files from the binary dir
|
||||
list(APPEND CMAKE_PREFIX_PATH "${CMAKE_BINARY_DIR}")
|
||||
# Also make sure the CMake config files do not recreate the already-existing targets
|
||||
set(QT_NO_CREATE_TARGETS TRUE)
|
||||
endif()
|
||||
|
||||
find_package(Qt5 COMPONENTS DBus Network Test Concurrent Sql Widgets Xml Gui)
|
||||
# special case end
|
||||
|
||||
# Generated from examples.pro.
|
||||
|
||||
add_subdirectory(corelib)
|
||||
add_subdirectory(embedded)
|
||||
add_subdirectory(qpa)
|
||||
@ -5,21 +27,62 @@ add_subdirectory(qpa)
|
||||
if(TARGET Qt::DBus)
|
||||
add_subdirectory(dbus)
|
||||
endif()
|
||||
|
||||
if(TARGET Qt::Network)
|
||||
add_subdirectory(network)
|
||||
endif()
|
||||
|
||||
if(TARGET Qt::Test)
|
||||
add_subdirectory(qtestlib)
|
||||
endif()
|
||||
|
||||
if(TARGET Qt::Concurrent)
|
||||
add_subdirectory(qtconcurrent)
|
||||
endif()
|
||||
|
||||
if(TARGET Qt::Sql)
|
||||
add_subdirectory(sql)
|
||||
endif()
|
||||
if(TARGET Qt::Gui)
|
||||
add_subdirectory(gui)
|
||||
endif()
|
||||
|
||||
if(TARGET Qt::Widgets)
|
||||
add_subdirectory(widgets)
|
||||
endif()
|
||||
|
||||
if(TARGET Qt::Xml)
|
||||
add_subdirectory(xml)
|
||||
endif()
|
||||
|
||||
if(TARGET Qt::Gui)
|
||||
add_subdirectory(gui)
|
||||
|
||||
if(QT_FEATURE_opengl)
|
||||
# add_subdirectory(opengl) # special case: removed
|
||||
endif()
|
||||
|
||||
if(QT_FEATURE_vulkan)
|
||||
# add_subdirectory(vulkan) # special case: removed
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# special case begin
|
||||
if (NOT QT_STANDALONE_EXAMPLES_BUILD)
|
||||
# We use AUTOMOC/UIC/RCC in the examples. Make sure to not fail on a fresh Qt build, that e.g. the moc binary does not exist yet.
|
||||
|
||||
# This function gets all targets below this directory
|
||||
function(get_all_targets _result _dir)
|
||||
get_property(_subdirs DIRECTORY "${_dir}" PROPERTY SUBDIRECTORIES)
|
||||
foreach(_subdir IN LISTS _subdirs)
|
||||
get_all_targets(${_result} "${_subdir}")
|
||||
endforeach()
|
||||
get_property(_sub_targets DIRECTORY "${_dir}" PROPERTY BUILDSYSTEM_TARGETS)
|
||||
set(${_result} ${${_result}} ${_sub_targets} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
get_all_targets(targets "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
||||
foreach(target ${targets})
|
||||
qt_autogen_tools(${target} ENABLE_AUTOGEN_TOOLS "moc" "uic" "rcc")
|
||||
endforeach()
|
||||
|
||||
endif()
|
||||
# special case end
|
||||
|
@ -3,5 +3,8 @@
|
||||
add_subdirectory(ipc)
|
||||
add_subdirectory(mimetypes)
|
||||
add_subdirectory(serialization)
|
||||
add_subdirectory(threads)
|
||||
add_subdirectory(tools)
|
||||
|
||||
if(QT_FEATURE_thread)
|
||||
add_subdirectory(threads)
|
||||
endif()
|
||||
|
@ -1,17 +1,28 @@
|
||||
# Generated from localfortuneclient.pro.
|
||||
|
||||
#####################################################################
|
||||
## localfortuneclient Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(localfortuneclient LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(localfortuneclient
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneclient"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneclient"
|
||||
SOURCES
|
||||
client.cpp client.h
|
||||
main.cpp
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(localfortuneclient WIN32 MACOSX_BUNDLE
|
||||
client.cpp client.h
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(localfortuneclient PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS localfortuneclient
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,17 +1,28 @@
|
||||
# Generated from localfortuneserver.pro.
|
||||
|
||||
#####################################################################
|
||||
## localfortuneserver Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(localfortuneserver LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(localfortuneserver
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneserver"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneserver"
|
||||
SOURCES
|
||||
main.cpp
|
||||
server.cpp server.h
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(localfortuneserver WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
server.cpp server.h
|
||||
)
|
||||
target_link_libraries(localfortuneserver PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS localfortuneserver
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,21 +1,26 @@
|
||||
# Generated from sharedmemory.pro.
|
||||
|
||||
#####################################################################
|
||||
## sharedmemory Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(sharedmemory LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(sharedmemory
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/ipc/sharedmemory"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/ipc/sharedmemory"
|
||||
SOURCES
|
||||
dialog.cpp dialog.h dialog.ui
|
||||
main.cpp
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Widgets
|
||||
ENABLE_AUTOGEN_TOOLS
|
||||
uic
|
||||
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(sharedmemory WIN32 MACOSX_BUNDLE
|
||||
dialog.cpp dialog.h dialog.ui
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(sharedmemory PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS sharedmemory
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:.:sharedmemory.pro:<TRUE>:
|
||||
# EXAMPLE_FILES = "*.png"
|
||||
|
@ -1,21 +1,27 @@
|
||||
# Generated from mimetypebrowser.pro.
|
||||
|
||||
#####################################################################
|
||||
## mimetypebrowser Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(mimetypebrowser LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(mimetypebrowser
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/mimetypes/mimetypebrowser"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/mimetypes/mimetypebrowser"
|
||||
SOURCES
|
||||
main.cpp
|
||||
mainwindow.cpp mainwindow.h
|
||||
mimetypemodel.cpp mimetypemodel.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(mimetypebrowser WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
mainwindow.cpp mainwindow.h
|
||||
mimetypemodel.cpp mimetypemodel.h
|
||||
)
|
||||
target_link_libraries(mimetypebrowser PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS mimetypebrowser
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:mimetypebrowser.pro:<NONE>:
|
||||
# CONFIG = "-app_bundle" "c++11"
|
||||
# TEMPLATE = "app"
|
||||
|
@ -1,19 +1,26 @@
|
||||
# Generated from cbordump.pro.
|
||||
|
||||
#####################################################################
|
||||
## cbordump Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(cbordump LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(cbordump
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/serialization/cbordump"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/serialization/cbordump"
|
||||
SOURCES
|
||||
main.cpp
|
||||
LIBRARIES
|
||||
# Remove: gui
|
||||
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 Core)
|
||||
|
||||
add_executable(cbordump
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(cbordump PUBLIC
|
||||
# Remove: gui
|
||||
Qt::Core
|
||||
)
|
||||
install(TARGETS cbordump
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:cbordump.pro:<NONE>:
|
||||
# CONFIG = "-app_bundle"
|
||||
# TEMPLATE = "app"
|
||||
|
@ -1,26 +1,33 @@
|
||||
# Generated from convert.pro.
|
||||
|
||||
#####################################################################
|
||||
## convert Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(convert LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(convert
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/serialization/convert"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/serialization/convert"
|
||||
SOURCES
|
||||
cborconverter.cpp cborconverter.h
|
||||
converter.h
|
||||
datastreamconverter.cpp datastreamconverter.h
|
||||
jsonconverter.cpp jsonconverter.h
|
||||
main.cpp
|
||||
nullconverter.cpp nullconverter.h
|
||||
textconverter.cpp textconverter.h
|
||||
xmlconverter.cpp xmlconverter.h
|
||||
LIBRARIES
|
||||
# Remove: gui
|
||||
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 Core)
|
||||
|
||||
add_executable(convert
|
||||
cborconverter.cpp cborconverter.h
|
||||
converter.h
|
||||
datastreamconverter.cpp datastreamconverter.h
|
||||
jsonconverter.cpp jsonconverter.h
|
||||
main.cpp
|
||||
nullconverter.cpp nullconverter.h
|
||||
textconverter.cpp textconverter.h
|
||||
xmlconverter.cpp xmlconverter.h
|
||||
)
|
||||
target_link_libraries(convert PUBLIC
|
||||
# Remove: gui
|
||||
Qt::Core
|
||||
)
|
||||
install(TARGETS convert
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:convert.pro:<NONE>:
|
||||
# CONFIG = "-app_bundle"
|
||||
# TEMPLATE = "app"
|
||||
|
@ -1,22 +1,29 @@
|
||||
# Generated from savegame.pro.
|
||||
|
||||
#####################################################################
|
||||
## savegame Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(savegame LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(savegame
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/serialization/savegame"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/serialization/savegame"
|
||||
SOURCES
|
||||
character.cpp character.h
|
||||
game.cpp game.h
|
||||
level.cpp level.h
|
||||
main.cpp
|
||||
LIBRARIES
|
||||
# Remove: gui
|
||||
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 Core)
|
||||
|
||||
add_executable(savegame
|
||||
character.cpp character.h
|
||||
game.cpp game.h
|
||||
level.cpp level.h
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(savegame PUBLIC
|
||||
# Remove: gui
|
||||
Qt::Core
|
||||
)
|
||||
install(TARGETS savegame
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:savegame.pro:<NONE>:
|
||||
# CONFIG = "-app_bundle"
|
||||
# TEMPLATE = "app"
|
||||
|
@ -1,25 +1,27 @@
|
||||
# Generated from mandelbrot.pro.
|
||||
|
||||
#####################################################################
|
||||
## mandelbrot Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(mandelbrot LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(mandelbrot
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/mandelbrot"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/mandelbrot"
|
||||
SOURCES
|
||||
main.cpp
|
||||
mandelbrotwidget.cpp mandelbrotwidget.h
|
||||
renderthread.cpp renderthread.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(mandelbrot WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
mandelbrotwidget.cpp mandelbrotwidget.h
|
||||
renderthread.cpp renderthread.h
|
||||
)
|
||||
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
|
||||
extend_target(mandelbrot CONDITION UNIX AND NOT APPLE_OSX AND NOT HAIKU AND NOT INTEGRITY AND NOT VXWORKS
|
||||
LIBRARIES
|
||||
m
|
||||
target_link_libraries(mandelbrot PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS mandelbrot
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,18 +1,28 @@
|
||||
# Generated from queuedcustomtype.pro.
|
||||
|
||||
#####################################################################
|
||||
## queuedcustomtype Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(queuedcustomtype LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(queuedcustomtype
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/queuedcustomtype"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/queuedcustomtype"
|
||||
SOURCES
|
||||
block.cpp block.h
|
||||
main.cpp
|
||||
renderthread.cpp renderthread.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(queuedcustomtype WIN32 MACOSX_BUNDLE
|
||||
block.cpp block.h
|
||||
main.cpp
|
||||
renderthread.cpp renderthread.h
|
||||
window.cpp window.h
|
||||
)
|
||||
target_link_libraries(queuedcustomtype PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS queuedcustomtype
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,15 +1,25 @@
|
||||
# Generated from semaphores.pro.
|
||||
|
||||
#####################################################################
|
||||
## semaphores Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(semaphores LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(semaphores
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/semaphores"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/semaphores"
|
||||
SOURCES
|
||||
semaphores.cpp
|
||||
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 Core)
|
||||
|
||||
add_executable(semaphores
|
||||
semaphores.cpp
|
||||
)
|
||||
target_link_libraries(semaphores PUBLIC
|
||||
Qt::Core
|
||||
)
|
||||
install(TARGETS semaphores
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:semaphores.pro:<NONE>:
|
||||
# CONFIG = "-app_bundle" "console"
|
||||
|
@ -1,15 +1,25 @@
|
||||
# Generated from waitconditions.pro.
|
||||
|
||||
#####################################################################
|
||||
## waitconditions Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(waitconditions LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(waitconditions
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/waitconditions"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/waitconditions"
|
||||
SOURCES
|
||||
waitconditions.cpp
|
||||
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 Core)
|
||||
|
||||
add_executable(waitconditions
|
||||
waitconditions.cpp
|
||||
)
|
||||
target_link_libraries(waitconditions PUBLIC
|
||||
Qt::Core
|
||||
)
|
||||
install(TARGETS waitconditions
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:waitconditions.pro:<NONE>:
|
||||
# CONFIG = "-moc" "-app_bundle" "console"
|
||||
|
@ -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}"
|
||||
)
|
||||
|
@ -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}"
|
||||
)
|
||||
|
@ -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}"
|
||||
)
|
||||
|
@ -1,24 +1,43 @@
|
||||
# Generated from chat.pro.
|
||||
|
||||
#####################################################################
|
||||
## chat Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(chat LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(chat
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/chat"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/chat"
|
||||
SOURCES
|
||||
chat.cpp chat.h
|
||||
chatmainwindow.ui
|
||||
chatsetnickname.ui
|
||||
DBUS_ADAPTOR_SOURCES
|
||||
org.example.chat.xml
|
||||
DBUS_INTERFACE_SOURCES
|
||||
org.example.chat.xml
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::DBus
|
||||
Qt::Widgets
|
||||
ENABLE_AUTOGEN_TOOLS
|
||||
uic
|
||||
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 DBus)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
# special case begin
|
||||
set(chat_SRCS)
|
||||
qt5_add_dbus_interface(chat_SRCS
|
||||
org.example.chat.xml
|
||||
chat_interface
|
||||
)
|
||||
qt5_add_dbus_adaptor(chat_SRCS
|
||||
org.example.chat.xml
|
||||
qobject.h
|
||||
QObject
|
||||
chat_adaptor
|
||||
)
|
||||
# special case end
|
||||
add_executable(chat WIN32 MACOSX_BUNDLE
|
||||
chat.cpp chat.h
|
||||
chatmainwindow.ui
|
||||
chatsetnickname.ui
|
||||
${chat_SRCS} # special case
|
||||
)
|
||||
target_link_libraries(chat PUBLIC
|
||||
Qt::DBus
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS chat
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,16 +1,26 @@
|
||||
# Generated from complexpong.pro.
|
||||
|
||||
#####################################################################
|
||||
## complexpong Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(complexpong LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(complexpong
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/complexpingpong"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/complexpingpong"
|
||||
SOURCES
|
||||
complexpong.cpp complexpong.h
|
||||
LIBRARIES
|
||||
# Remove: gui
|
||||
Qt::DBus
|
||||
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 DBus)
|
||||
|
||||
add_executable(complexpong WIN32 MACOSX_BUNDLE
|
||||
complexpong.cpp complexpong.h
|
||||
)
|
||||
target_link_libraries(complexpong PUBLIC
|
||||
# Remove: gui
|
||||
Qt::DBus
|
||||
)
|
||||
install(TARGETS complexpong
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,22 +1,26 @@
|
||||
# Generated from listnames.pro.
|
||||
|
||||
#####################################################################
|
||||
## listnames Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(listnames LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(listnames
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/listnames"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/listnames"
|
||||
SOURCES
|
||||
listnames.cpp
|
||||
LIBRARIES
|
||||
# Remove: gui
|
||||
Qt::DBus
|
||||
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 DBus)
|
||||
|
||||
add_executable(listnames WIN32 MACOSX_BUNDLE
|
||||
listnames.cpp
|
||||
)
|
||||
target_link_libraries(listnames PUBLIC
|
||||
# Remove: gui
|
||||
Qt::DBus
|
||||
)
|
||||
install(TARGETS listnames
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
|
||||
#### Keys ignored in scope 2:.:listnames.pro:WIN32:
|
||||
# CONFIG = "console"
|
||||
|
@ -1,35 +1,27 @@
|
||||
# Generated from pingpong.pro.
|
||||
# Generated from pong.pro.
|
||||
|
||||
#####################################################################
|
||||
## ping Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(pong LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(ping
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/pingpong"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/pingpong"
|
||||
SOURCES
|
||||
ping.cpp
|
||||
ping-common.h
|
||||
LIBRARIES
|
||||
# Remove: gui
|
||||
Qt::DBus
|
||||
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 DBus)
|
||||
|
||||
add_executable(pong WIN32 MACOSX_BUNDLE
|
||||
ping-common.h
|
||||
pong.cpp pong.h
|
||||
)
|
||||
#####################################################################
|
||||
## pong Binary:
|
||||
#####################################################################
|
||||
|
||||
add_qt_executable(pong
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/pingpong"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/pingpong"
|
||||
SOURCES
|
||||
ping-common.h
|
||||
pong.cpp pong.h
|
||||
LIBRARIES
|
||||
# Remove: gui
|
||||
Qt::DBus
|
||||
target_link_libraries(pong PUBLIC
|
||||
# Remove: gui
|
||||
Qt::DBus
|
||||
)
|
||||
install(TARGETS pong
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
endif()
|
||||
|
@ -1,19 +1,38 @@
|
||||
# Generated from car.pro.
|
||||
|
||||
#####################################################################
|
||||
## car Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(car LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(car
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/car"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/car"
|
||||
SOURCES
|
||||
car.cpp car.h
|
||||
main.cpp
|
||||
DBUS_ADAPTOR_SOURCES
|
||||
car.xml
|
||||
LIBRARIES
|
||||
Qt::DBus
|
||||
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 DBus)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
# special case begin
|
||||
set(car_SRCS)
|
||||
qt5_add_dbus_adaptor(car_SRCS
|
||||
car.xml
|
||||
car.h
|
||||
Car
|
||||
car_adaptor
|
||||
)
|
||||
# special case end
|
||||
add_executable(car WIN32 MACOSX_BUNDLE
|
||||
car.cpp car.h
|
||||
main.cpp
|
||||
${car_SRCS} # special case
|
||||
)
|
||||
target_link_libraries(car PUBLIC
|
||||
Qt::DBus
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS car
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,21 +1,36 @@
|
||||
# Generated from controller.pro.
|
||||
|
||||
#####################################################################
|
||||
## controller Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(controller LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(controller
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/controller"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/controller"
|
||||
SOURCES
|
||||
controller.cpp controller.h controller.ui
|
||||
main.cpp
|
||||
DBUS_INTERFACE_SOURCES
|
||||
car.xml
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::DBus
|
||||
Qt::Widgets
|
||||
ENABLE_AUTOGEN_TOOLS
|
||||
uic
|
||||
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 DBus)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
# special case begin
|
||||
set(controller_SRCS)
|
||||
qt5_add_dbus_interface(controller_SRCS
|
||||
car.xml
|
||||
car_interface
|
||||
)
|
||||
# special case end
|
||||
add_executable(controller WIN32 MACOSX_BUNDLE
|
||||
controller.cpp controller.h controller.ui
|
||||
main.cpp
|
||||
${controller_SRCS} # special case
|
||||
)
|
||||
target_link_libraries(controller PUBLIC
|
||||
Qt::DBus
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS controller
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,15 +1,25 @@
|
||||
# Generated from digiflip.pro.
|
||||
|
||||
#####################################################################
|
||||
## digiflip Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(digiflip LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(digiflip
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/digiflip"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/digiflip"
|
||||
SOURCES
|
||||
digiflip.cpp
|
||||
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(digiflip WIN32 MACOSX_BUNDLE
|
||||
digiflip.cpp
|
||||
)
|
||||
target_link_libraries(digiflip PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS digiflip
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,16 +1,26 @@
|
||||
# Generated from flickable.pro.
|
||||
|
||||
#####################################################################
|
||||
## flickable Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(flickable LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(flickable
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/flickable"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/flickable"
|
||||
SOURCES
|
||||
flickable.cpp flickable.h
|
||||
main.cpp
|
||||
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(flickable WIN32 MACOSX_BUNDLE
|
||||
flickable.cpp flickable.h
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(flickable PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS flickable
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,27 +1,29 @@
|
||||
# Generated from flightinfo.pro.
|
||||
|
||||
#####################################################################
|
||||
## flightinfo Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(flightinfo LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(flightinfo
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/flightinfo"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/flightinfo"
|
||||
SOURCES
|
||||
flightinfo.cpp
|
||||
form.ui
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
ENABLE_AUTOGEN_TOOLS
|
||||
uic
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(flightinfo WIN32 MACOSX_BUNDLE
|
||||
flightinfo.cpp
|
||||
form.ui
|
||||
flightinfo.qrc # special case: add
|
||||
)
|
||||
target_link_libraries(flightinfo PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS flightinfo
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
||||
# Resources:
|
||||
add_qt_resource(flightinfo "flightinfo" PREFIX "/" FILES
|
||||
aircraft.png)
|
||||
|
||||
|
||||
#### Keys ignored in scope 1:.:.:flightinfo.pro:<TRUE>:
|
||||
# TEMPLATE = "app"
|
||||
|
@ -1,22 +1,30 @@
|
||||
# Generated from lightmaps.pro.
|
||||
|
||||
#####################################################################
|
||||
## lightmaps Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(lightmaps LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(lightmaps
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/lightmaps"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/lightmaps"
|
||||
SOURCES
|
||||
lightmaps.cpp lightmaps.h
|
||||
main.cpp
|
||||
mapzoom.cpp mapzoom.h
|
||||
slippymap.cpp slippymap.h
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(lightmaps WIN32 MACOSX_BUNDLE
|
||||
lightmaps.cpp lightmaps.h
|
||||
main.cpp
|
||||
mapzoom.cpp mapzoom.h
|
||||
slippymap.cpp slippymap.h
|
||||
)
|
||||
target_link_libraries(lightmaps PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS lightmaps
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:lightmaps.pro:<NONE>:
|
||||
# TEMPLATE = "app"
|
||||
|
@ -1,23 +1,26 @@
|
||||
# Generated from raycasting.pro.
|
||||
|
||||
#####################################################################
|
||||
## raycasting Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(raycasting LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(raycasting
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/raycasting"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/raycasting"
|
||||
SOURCES
|
||||
raycasting.cpp
|
||||
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(raycasting WIN32 MACOSX_BUNDLE
|
||||
raycasting.cpp raycasting.qrc
|
||||
)
|
||||
target_link_libraries(raycasting PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
# Resources:
|
||||
add_qt_resource(raycasting "raycasting" PREFIX "/" FILES
|
||||
textures.png)
|
||||
|
||||
|
||||
#### Keys ignored in scope 1:.:raycasting.pro:<NONE>:
|
||||
# TEMPLATE = "app"
|
||||
install(TARGETS raycasting
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,30 +1,27 @@
|
||||
# Generated from styleexample.pro.
|
||||
|
||||
#####################################################################
|
||||
## styleexample Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(styleexample LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(styleexample
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/styleexample"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/styleexample"
|
||||
SOURCES
|
||||
main.cpp
|
||||
stylewidget.cpp stylewidget.h stylewidget.ui
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Widgets
|
||||
ENABLE_AUTOGEN_TOOLS
|
||||
uic
|
||||
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(styleexample WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
stylewidget.cpp stylewidget.h stylewidget.ui
|
||||
styleexample.qrc # special case: add
|
||||
)
|
||||
target_link_libraries(styleexample PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS styleexample
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
||||
# Resources:
|
||||
add_qt_resource(styleexample "styleexample" PREFIX "/" FILES
|
||||
files/add.png
|
||||
files/application.qss
|
||||
files/blue.qss
|
||||
files/khaki.qss
|
||||
files/nature_1.jpg
|
||||
files/nostyle.qss
|
||||
files/remove.png
|
||||
files/transparent.qss)
|
||||
|
||||
|
@ -1,21 +1,32 @@
|
||||
# Generated from analogclock.pro.
|
||||
|
||||
#####################################################################
|
||||
## analogclock Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(analogclock LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(analogclock
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/analogclock"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/analogclock"
|
||||
SOURCES
|
||||
../rasterwindow/rasterwindow.cpp ../rasterwindow/rasterwindow.h
|
||||
main.cpp
|
||||
INCLUDE_DIRECTORIES
|
||||
../rasterwindow
|
||||
LIBRARIES # special case
|
||||
Qt::Gui
|
||||
find_package(Qt5 COMPONENTS Widgets) # special case: add
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
set(INSTALL_EXAMPLEDIR "examples")
|
||||
|
||||
add_executable(gui_analogclock WIN32 MACOSX_BUNDLE # special case: renamed target
|
||||
../rasterwindow/rasterwindow.cpp ../rasterwindow/rasterwindow.h
|
||||
main.cpp
|
||||
)
|
||||
target_include_directories(gui_analogclock PUBLIC
|
||||
../rasterwindow
|
||||
)
|
||||
# special case begin
|
||||
target_link_libraries(gui_analogclock PUBLIC
|
||||
Qt::Gui
|
||||
)
|
||||
# special case end
|
||||
|
||||
#### Keys ignored in scope 1:.:analogclock.pro:<NONE>:
|
||||
# CONFIG = "no_batch"
|
||||
install(TARGETS gui_analogclock
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,18 +1,31 @@
|
||||
# Generated from openglwindow.pro.
|
||||
|
||||
#####################################################################
|
||||
## openglwindow Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(openglwindow LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(openglwindow
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/openglwindow"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/openglwindow"
|
||||
SOURCES
|
||||
main.cpp
|
||||
openglwindow.cpp openglwindow.h
|
||||
INCLUDE_DIRECTORIES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
LIBRARIES # special case
|
||||
Qt::Gui
|
||||
find_package(Qt5 COMPONENTS Widgets) # special case: add
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
set(INSTALL_EXAMPLEDIR "examples")
|
||||
|
||||
add_executable(openglwindow WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
openglwindow.cpp openglwindow.h
|
||||
)
|
||||
target_include_directories(openglwindow PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
# special case begin
|
||||
target_link_libraries(openglwindow PUBLIC
|
||||
Qt::Gui
|
||||
)
|
||||
# special case end
|
||||
install(TARGETS openglwindow
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,18 +1,31 @@
|
||||
# Generated from rasterwindow.pro.
|
||||
|
||||
#####################################################################
|
||||
## rasterwindow Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(rasterwindow LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(rasterwindow
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/rasterwindow"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/rasterwindow"
|
||||
SOURCES
|
||||
main.cpp
|
||||
rasterwindow.cpp rasterwindow.h
|
||||
INCLUDE_DIRECTORIES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
LIBRARIES # special case
|
||||
Qt::Gui
|
||||
find_package(Qt5 COMPONENTS Widgets) # special case: add
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
set(INSTALL_EXAMPLEDIR "examples")
|
||||
|
||||
add_executable(rasterwindow WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
rasterwindow.cpp rasterwindow.h
|
||||
)
|
||||
target_include_directories(rasterwindow PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
# special case begin
|
||||
target_link_libraries(rasterwindow PUBLIC
|
||||
Qt::Gui
|
||||
)
|
||||
# special case end
|
||||
install(TARGETS rasterwindow
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,33 +1,36 @@
|
||||
# Generated from bearermonitor.pro.
|
||||
|
||||
#####################################################################
|
||||
## bearermonitor Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(bearermonitor LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(bearermonitor
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/bearermonitor"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/bearermonitor"
|
||||
SOURCES
|
||||
bearermonitor.cpp bearermonitor.h
|
||||
bearermonitor_240_320.ui
|
||||
bearermonitor_640_480.ui
|
||||
main.cpp
|
||||
sessionwidget.cpp sessionwidget.h sessionwidget.ui
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Gui
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
ENABLE_AUTOGEN_TOOLS
|
||||
uic
|
||||
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 Core)
|
||||
find_package(Qt5 COMPONENTS Gui)
|
||||
find_package(Qt5 COMPONENTS Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(bearermonitor
|
||||
bearermonitor.cpp bearermonitor.h
|
||||
bearermonitor_240_320.ui
|
||||
bearermonitor_640_480.ui
|
||||
main.cpp
|
||||
sessionwidget.cpp sessionwidget.h sessionwidget.ui
|
||||
)
|
||||
target_link_libraries(bearermonitor PUBLIC
|
||||
Qt::Core
|
||||
Qt::Gui
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:.:bearermonitor.pro:<TRUE>:
|
||||
# CONFIG = "console"
|
||||
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
|
||||
extend_target(bearermonitor CONDITION WIN32
|
||||
PUBLIC_LIBRARIES
|
||||
ws2_32
|
||||
install(TARGETS bearermonitor
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,18 +1,30 @@
|
||||
# Generated from blockingfortuneclient.pro.
|
||||
|
||||
#####################################################################
|
||||
## blockingfortuneclient Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(blockingfortuneclient LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(blockingfortuneclient
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/blockingfortuneclient"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/blockingfortuneclient"
|
||||
SOURCES
|
||||
blockingclient.cpp blockingclient.h
|
||||
fortunethread.cpp fortunethread.h
|
||||
main.cpp
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(blockingfortuneclient WIN32 MACOSX_BUNDLE
|
||||
blockingclient.cpp blockingclient.h
|
||||
fortunethread.cpp fortunethread.h
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(blockingfortuneclient PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS blockingfortuneclient
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,17 +1,29 @@
|
||||
# Generated from broadcastreceiver.pro.
|
||||
|
||||
#####################################################################
|
||||
## broadcastreceiver Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(broadcastreceiver LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(broadcastreceiver
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/broadcastreceiver"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/broadcastreceiver"
|
||||
SOURCES
|
||||
main.cpp
|
||||
receiver.cpp receiver.h
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(broadcastreceiver WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
receiver.cpp receiver.h
|
||||
)
|
||||
target_link_libraries(broadcastreceiver PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS broadcastreceiver
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,17 +1,29 @@
|
||||
# Generated from broadcastsender.pro.
|
||||
|
||||
#####################################################################
|
||||
## broadcastsender Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(broadcastsender LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(broadcastsender
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/broadcastsender"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/broadcastsender"
|
||||
SOURCES
|
||||
main.cpp
|
||||
sender.cpp sender.h
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(broadcastsender WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
sender.cpp sender.h
|
||||
)
|
||||
target_link_libraries(broadcastsender PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS broadcastsender
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,27 +1,28 @@
|
||||
# Generated from dnslookup.pro.
|
||||
|
||||
#####################################################################
|
||||
## dnslookup Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(dnslookup LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(dnslookup
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/dnslookup"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/dnslookup"
|
||||
SOURCES
|
||||
dnslookup.cpp dnslookup.h
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
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 Core)
|
||||
find_package(Qt5 COMPONENTS Network)
|
||||
|
||||
add_executable(dnslookup
|
||||
dnslookup.cpp dnslookup.h
|
||||
)
|
||||
target_link_libraries(dnslookup PUBLIC
|
||||
Qt::Core
|
||||
Qt::Network
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:dnslookup.pro:<NONE>:
|
||||
# TEMPLATE = "app"
|
||||
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
|
||||
#### Keys ignored in scope 2:.:dnslookup.pro:APPLE_OSX:
|
||||
# CONFIG = "-app_bundle"
|
||||
|
||||
#### Keys ignored in scope 3:.:dnslookup.pro:WIN32:
|
||||
# CONFIG = "console"
|
||||
install(TARGETS dnslookup
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,18 +1,28 @@
|
||||
# Generated from download.pro.
|
||||
|
||||
#####################################################################
|
||||
## download Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(download LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(download
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/download"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/download"
|
||||
SOURCES
|
||||
main.cpp
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
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 Core)
|
||||
find_package(Qt5 COMPONENTS Network)
|
||||
|
||||
add_executable(download
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(download PUBLIC
|
||||
Qt::Core
|
||||
Qt::Network
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:download.pro:<NONE>:
|
||||
# CONFIG = "-app_bundle"
|
||||
install(TARGETS download
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,21 +1,30 @@
|
||||
# Generated from downloadmanager.pro.
|
||||
|
||||
#####################################################################
|
||||
## downloadmanager Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(downloadmanager LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(downloadmanager
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/downloadmanager"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/downloadmanager"
|
||||
SOURCES
|
||||
downloadmanager.cpp downloadmanager.h
|
||||
main.cpp
|
||||
textprogressbar.cpp textprogressbar.h
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
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 Core)
|
||||
find_package(Qt5 COMPONENTS Network)
|
||||
|
||||
add_executable(downloadmanager
|
||||
downloadmanager.cpp downloadmanager.h
|
||||
main.cpp
|
||||
textprogressbar.cpp textprogressbar.h
|
||||
)
|
||||
target_link_libraries(downloadmanager PUBLIC
|
||||
Qt::Core
|
||||
Qt::Network
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:downloadmanager.pro:<NONE>:
|
||||
# CONFIG = "-app_bundle"
|
||||
# OTHER_FILES = "debian/changelog" "debian/compat" "debian/control" "debian/copyright" "debian/README" "debian/rules"
|
||||
install(TARGETS downloadmanager
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,17 +1,29 @@
|
||||
# Generated from fortuneclient.pro.
|
||||
|
||||
#####################################################################
|
||||
## fortuneclient Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(fortuneclient LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(fortuneclient
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/fortuneclient"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/fortuneclient"
|
||||
SOURCES
|
||||
client.cpp client.h
|
||||
main.cpp
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(fortuneclient WIN32 MACOSX_BUNDLE
|
||||
client.cpp client.h
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(fortuneclient PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS fortuneclient
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,17 +1,29 @@
|
||||
# Generated from fortuneserver.pro.
|
||||
|
||||
#####################################################################
|
||||
## fortuneserver Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(fortuneserver LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(fortuneserver
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/fortuneserver"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/fortuneserver"
|
||||
SOURCES
|
||||
main.cpp
|
||||
server.cpp server.h
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(fortuneserver WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
server.cpp server.h
|
||||
)
|
||||
target_link_libraries(fortuneserver PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS fortuneserver
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,18 +1,30 @@
|
||||
# Generated from googlesuggest.pro.
|
||||
|
||||
#####################################################################
|
||||
## googlesuggest Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(googlesuggest LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(googlesuggest
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/googlesuggest"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/googlesuggest"
|
||||
SOURCES
|
||||
googlesuggest.cpp googlesuggest.h
|
||||
main.cpp
|
||||
searchbox.cpp searchbox.h
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(googlesuggest WIN32 MACOSX_BUNDLE
|
||||
googlesuggest.cpp googlesuggest.h
|
||||
main.cpp
|
||||
searchbox.cpp searchbox.h
|
||||
)
|
||||
target_link_libraries(googlesuggest PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS googlesuggest
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,20 +1,30 @@
|
||||
# Generated from http.pro.
|
||||
|
||||
#####################################################################
|
||||
## http Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(http LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(http
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/http"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/http"
|
||||
SOURCES
|
||||
authenticationdialog.ui
|
||||
httpwindow.cpp httpwindow.h
|
||||
main.cpp
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
ENABLE_AUTOGEN_TOOLS
|
||||
uic
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(http WIN32 MACOSX_BUNDLE
|
||||
authenticationdialog.ui
|
||||
httpwindow.cpp httpwindow.h
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(http PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS http
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,17 +1,29 @@
|
||||
# Generated from loopback.pro.
|
||||
|
||||
#####################################################################
|
||||
## loopback Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(loopback LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(loopback
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/loopback"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/loopback"
|
||||
SOURCES
|
||||
dialog.cpp dialog.h
|
||||
main.cpp
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(loopback WIN32 MACOSX_BUNDLE
|
||||
dialog.cpp dialog.h
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(loopback PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS loopback
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,17 +1,29 @@
|
||||
# Generated from multicastreceiver.pro.
|
||||
|
||||
#####################################################################
|
||||
## multicastreceiver Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(multicastreceiver LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(multicastreceiver
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multicastreceiver"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multicastreceiver"
|
||||
SOURCES
|
||||
main.cpp
|
||||
receiver.cpp receiver.h
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(multicastreceiver WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
receiver.cpp receiver.h
|
||||
)
|
||||
target_link_libraries(multicastreceiver PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS multicastreceiver
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,17 +1,29 @@
|
||||
# Generated from multicastsender.pro.
|
||||
|
||||
#####################################################################
|
||||
## multicastsender Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(multicastsender LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(multicastsender
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multicastsender"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multicastsender"
|
||||
SOURCES
|
||||
main.cpp
|
||||
sender.cpp sender.h
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(multicastsender WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
sender.cpp sender.h
|
||||
)
|
||||
target_link_libraries(multicastsender PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS multicastsender
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,21 +1,33 @@
|
||||
# Generated from multistreamclient.pro.
|
||||
|
||||
#####################################################################
|
||||
## multistreamclient Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(multistreamclient LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(multistreamclient
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multistreamclient"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multistreamclient"
|
||||
SOURCES
|
||||
chatconsumer.cpp chatconsumer.h
|
||||
client.cpp client.h
|
||||
consumer.h
|
||||
main.cpp
|
||||
movieconsumer.cpp movieconsumer.h
|
||||
timeconsumer.cpp timeconsumer.h
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(multistreamclient WIN32 MACOSX_BUNDLE
|
||||
chatconsumer.cpp chatconsumer.h
|
||||
client.cpp client.h
|
||||
consumer.h
|
||||
main.cpp
|
||||
movieconsumer.cpp movieconsumer.h
|
||||
timeconsumer.cpp timeconsumer.h
|
||||
)
|
||||
target_link_libraries(multistreamclient PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS multistreamclient
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,24 +1,33 @@
|
||||
# Generated from multistreamserver.pro.
|
||||
|
||||
#####################################################################
|
||||
## multistreamserver Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(multistreamserver LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(multistreamserver
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multistreamserver"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multistreamserver"
|
||||
SOURCES
|
||||
chatprovider.cpp chatprovider.h
|
||||
main.cpp
|
||||
movieprovider.cpp movieprovider.h
|
||||
provider.h
|
||||
server.cpp server.h
|
||||
timeprovider.cpp timeprovider.h
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(multistreamserver WIN32 MACOSX_BUNDLE
|
||||
chatprovider.cpp chatprovider.h
|
||||
main.cpp
|
||||
movieprovider.cpp movieprovider.h
|
||||
provider.h
|
||||
server.cpp server.h
|
||||
timeprovider.cpp timeprovider.h
|
||||
)
|
||||
target_link_libraries(multistreamserver PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:multistreamserver.pro:<NONE>:
|
||||
# EXAMPLE_FILES = "animation.gif"
|
||||
install(TARGETS multistreamserver
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,23 +1,33 @@
|
||||
# Generated from network-chat.pro.
|
||||
|
||||
#####################################################################
|
||||
## network-chat Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(network-chat LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(network-chat
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/network-chat"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/network-chat"
|
||||
SOURCES
|
||||
chatdialog.cpp chatdialog.h chatdialog.ui
|
||||
client.cpp client.h
|
||||
connection.cpp connection.h
|
||||
main.cpp
|
||||
peermanager.cpp peermanager.h
|
||||
server.cpp server.h
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
ENABLE_AUTOGEN_TOOLS
|
||||
uic
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(network-chat WIN32 MACOSX_BUNDLE
|
||||
chatdialog.cpp chatdialog.h chatdialog.ui
|
||||
client.cpp client.h
|
||||
connection.cpp connection.h
|
||||
main.cpp
|
||||
peermanager.cpp peermanager.h
|
||||
server.cpp server.h
|
||||
)
|
||||
target_link_libraries(network-chat PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS network-chat
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,26 +1,32 @@
|
||||
# Generated from securesocketclient.pro.
|
||||
|
||||
#####################################################################
|
||||
## securesocketclient Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(securesocketclient LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(securesocketclient
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/securesocketclient"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/securesocketclient"
|
||||
SOURCES
|
||||
certificateinfo.cpp certificateinfo.h certificateinfo.ui
|
||||
main.cpp
|
||||
sslclient.cpp sslclient.h sslclient.ui
|
||||
sslerrors.ui
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
ENABLE_AUTOGEN_TOOLS
|
||||
uic
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(securesocketclient WIN32 MACOSX_BUNDLE
|
||||
certificateinfo.cpp certificateinfo.h certificateinfo.ui
|
||||
main.cpp
|
||||
securesocketclient.qrc
|
||||
sslclient.cpp sslclient.h sslclient.ui
|
||||
sslerrors.ui
|
||||
)
|
||||
target_link_libraries(securesocketclient PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
# Resources:
|
||||
add_qt_resource(securesocketclient "securesocketclient" FILES
|
||||
encrypted.png)
|
||||
|
||||
install(TARGETS securesocketclient
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,24 +1,31 @@
|
||||
# Generated from secureudpclient.pro.
|
||||
|
||||
#####################################################################
|
||||
## secureudpclient Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(secureudpclient LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(secureudpclient
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/secureudpclient"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/secureudpclient"
|
||||
SOURCES
|
||||
addressdialog.cpp addressdialog.h addressdialog.ui
|
||||
association.cpp association.h
|
||||
main.cpp
|
||||
mainwindow.cpp mainwindow.h mainwindow.ui
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
ENABLE_AUTOGEN_TOOLS
|
||||
uic
|
||||
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)
|
||||
find_package(Qt5 COMPONENTS Network)
|
||||
|
||||
add_executable(secureudpclient WIN32 MACOSX_BUNDLE
|
||||
addressdialog.cpp addressdialog.h addressdialog.ui
|
||||
association.cpp association.h
|
||||
main.cpp
|
||||
mainwindow.cpp mainwindow.h mainwindow.ui
|
||||
)
|
||||
target_link_libraries(secureudpclient PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:.:secureudpclient.pro:<TRUE>:
|
||||
# TEMPLATE = "app"
|
||||
install(TARGETS secureudpclient
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,24 +1,31 @@
|
||||
# Generated from secureudpserver.pro.
|
||||
|
||||
#####################################################################
|
||||
## secureudpserver Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(secureudpserver LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(secureudpserver
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/secureudpserver"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/secureudpserver"
|
||||
SOURCES
|
||||
main.cpp
|
||||
mainwindow.cpp mainwindow.h mainwindow.ui
|
||||
nicselector.cpp nicselector.h nicselector.ui
|
||||
server.cpp server.h
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
ENABLE_AUTOGEN_TOOLS
|
||||
uic
|
||||
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)
|
||||
find_package(Qt5 COMPONENTS Network)
|
||||
|
||||
add_executable(secureudpserver WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
mainwindow.cpp mainwindow.h mainwindow.ui
|
||||
nicselector.cpp nicselector.h nicselector.ui
|
||||
server.cpp server.h
|
||||
)
|
||||
target_link_libraries(secureudpserver PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:.:secureudpserver.pro:<TRUE>:
|
||||
# TEMPLATE = "app"
|
||||
install(TARGETS secureudpserver
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,19 +1,31 @@
|
||||
# Generated from threadedfortuneserver.pro.
|
||||
|
||||
#####################################################################
|
||||
## threadedfortuneserver Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(threadedfortuneserver LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(threadedfortuneserver
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/threadedfortuneserver"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/threadedfortuneserver"
|
||||
SOURCES
|
||||
dialog.cpp dialog.h
|
||||
fortuneserver.cpp fortuneserver.h
|
||||
fortunethread.cpp fortunethread.h
|
||||
main.cpp
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(threadedfortuneserver WIN32 MACOSX_BUNDLE
|
||||
dialog.cpp dialog.h
|
||||
fortuneserver.cpp fortuneserver.h
|
||||
fortunethread.cpp fortunethread.h
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(threadedfortuneserver PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS threadedfortuneserver
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,42 +1,41 @@
|
||||
# Generated from torrent.pro.
|
||||
|
||||
#####################################################################
|
||||
## torrent Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(torrent LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(torrent
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/torrent"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/torrent"
|
||||
SOURCES
|
||||
addtorrentdialog.cpp addtorrentdialog.h
|
||||
bencodeparser.cpp bencodeparser.h
|
||||
connectionmanager.cpp connectionmanager.h
|
||||
filemanager.cpp filemanager.h
|
||||
forms/addtorrentform.ui
|
||||
main.cpp
|
||||
mainwindow.cpp mainwindow.h
|
||||
metainfo.cpp metainfo.h
|
||||
peerwireclient.cpp peerwireclient.h
|
||||
ratecontroller.cpp ratecontroller.h
|
||||
torrentclient.cpp torrentclient.h
|
||||
torrentserver.cpp torrentserver.h
|
||||
trackerclient.cpp trackerclient.h
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
ENABLE_AUTOGEN_TOOLS
|
||||
uic
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(torrent WIN32 MACOSX_BUNDLE
|
||||
addtorrentdialog.cpp addtorrentdialog.h
|
||||
bencodeparser.cpp bencodeparser.h
|
||||
connectionmanager.cpp connectionmanager.h
|
||||
filemanager.cpp filemanager.h
|
||||
forms/addtorrentform.ui
|
||||
icons.qrc
|
||||
main.cpp
|
||||
mainwindow.cpp mainwindow.h
|
||||
metainfo.cpp metainfo.h
|
||||
peerwireclient.cpp peerwireclient.h
|
||||
ratecontroller.cpp ratecontroller.h
|
||||
torrentclient.cpp torrentclient.h
|
||||
torrentserver.cpp torrentserver.h
|
||||
trackerclient.cpp trackerclient.h
|
||||
)
|
||||
target_link_libraries(torrent PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
# Resources:
|
||||
add_qt_resource(torrent "icons" PREFIX "/" FILES
|
||||
icons/1downarrow.png
|
||||
icons/1uparrow.png
|
||||
icons/bottom.png
|
||||
icons/exit.png
|
||||
icons/peertopeer.png
|
||||
icons/player_pause.png
|
||||
icons/player_play.png
|
||||
icons/player_stop.png)
|
||||
|
||||
install(TARGETS torrent
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,44 +1,42 @@
|
||||
# Generated from torrent.pro.
|
||||
|
||||
#####################################################################
|
||||
## torrent Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(torrent LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(torrent
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/torrent"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/torrent"
|
||||
SOURCES
|
||||
addtorrentdialog.cpp addtorrentdialog.h
|
||||
bencodeparser.cpp bencodeparser.h
|
||||
connectionmanager.cpp connectionmanager.h
|
||||
filemanager.cpp filemanager.h
|
||||
forms/addtorrentform.ui
|
||||
main.cpp
|
||||
mainwindow.cpp mainwindow.h
|
||||
metainfo.cpp metainfo.h
|
||||
peerwireclient.cpp peerwireclient.h
|
||||
ratecontroller.cpp ratecontroller.h
|
||||
torrentclient.cpp torrentclient.h
|
||||
torrentserver.cpp torrentserver.h
|
||||
trackerclient.cpp trackerclient.h
|
||||
INCLUDE_DIRECTORIES # special case
|
||||
forms # special case
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
ENABLE_AUTOGEN_TOOLS
|
||||
uic
|
||||
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 Network)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(torrent WIN32 MACOSX_BUNDLE
|
||||
addtorrentdialog.cpp addtorrentdialog.h
|
||||
bencodeparser.cpp bencodeparser.h
|
||||
connectionmanager.cpp connectionmanager.h
|
||||
filemanager.cpp filemanager.h
|
||||
forms/addtorrentform.ui
|
||||
icons.qrc
|
||||
main.cpp
|
||||
mainwindow.cpp mainwindow.h
|
||||
metainfo.cpp metainfo.h
|
||||
peerwireclient.cpp peerwireclient.h
|
||||
ratecontroller.cpp ratecontroller.h
|
||||
torrentclient.cpp torrentclient.h
|
||||
torrentserver.cpp torrentserver.h
|
||||
trackerclient.cpp trackerclient.h
|
||||
)
|
||||
target_include_directories(torrent PUBLIC forms) # special case
|
||||
target_link_libraries(torrent PUBLIC
|
||||
Qt::Network
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
# Resources:
|
||||
add_qt_resource(torrent "icons" PREFIX "/" FILES
|
||||
icons/1downarrow.png
|
||||
icons/1uparrow.png
|
||||
icons/bottom.png
|
||||
icons/exit.png
|
||||
icons/peertopeer.png
|
||||
icons/player_pause.png
|
||||
icons/player_play.png
|
||||
icons/player_stop.png)
|
||||
|
||||
install(TARGETS torrent
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,15 +1,24 @@
|
||||
# Generated from qrasterwindow.pro.
|
||||
|
||||
#####################################################################
|
||||
## qrasterwindow Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(qrasterwindow LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(qrasterwindow
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qpa/qrasterwindow"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qpa/qrasterwindow"
|
||||
SOURCES
|
||||
main.cpp
|
||||
LIBRARIES
|
||||
Qt::Gui # special case
|
||||
find_package(Qt5 COMPONENTS 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")
|
||||
|
||||
add_executable(qrasterwindow WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(qrasterwindow PUBLIC Qt::Gui) # special case: add
|
||||
|
||||
install(TARGETS qrasterwindow
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,19 +1,33 @@
|
||||
# Generated from windows.pro.
|
||||
|
||||
#####################################################################
|
||||
## windows Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(windows LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(windows
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qpa/windows"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qpa/windows"
|
||||
SOURCES
|
||||
main.cpp
|
||||
window.cpp window.h
|
||||
LIBRARIES
|
||||
Qt::GuiPrivate
|
||||
Qt::CorePrivate
|
||||
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 Gui)
|
||||
find_package(Qt5 COMPONENTS Core)
|
||||
|
||||
add_executable(windows
|
||||
main.cpp
|
||||
window.cpp window.h
|
||||
)
|
||||
target_link_libraries(windows PRIVATE
|
||||
Qt::CorePrivate
|
||||
Qt::GuiPrivate
|
||||
)
|
||||
target_link_libraries(windows PUBLIC
|
||||
Qt::Core
|
||||
Qt::Gui
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:windows.pro:<NONE>:
|
||||
# CONFIG = "console"
|
||||
install(TARGETS windows
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,17 +1,29 @@
|
||||
# Generated from imagescaling.pro.
|
||||
|
||||
#####################################################################
|
||||
## imagescaling Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(imagescaling LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(imagescaling
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/imagescaling"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/imagescaling"
|
||||
SOURCES
|
||||
imagescaling.cpp imagescaling.h
|
||||
main.cpp
|
||||
LIBRARIES
|
||||
Qt::Concurrent
|
||||
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 Concurrent)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(imagescaling WIN32 MACOSX_BUNDLE
|
||||
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}"
|
||||
)
|
||||
|
26
examples/qtconcurrent/map/.prev_CMakeLists.txt
Normal file
26
examples/qtconcurrent/map/.prev_CMakeLists.txt
Normal file
@ -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}"
|
||||
)
|
@ -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
|
||||
|
||||
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}"
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:map.pro:<NONE>:
|
||||
# CONFIG = "-app_bundle"
|
||||
# TEMPLATE = "app"
|
||||
|
@ -1,18 +1,28 @@
|
||||
# Generated from progressdialog.pro.
|
||||
|
||||
#####################################################################
|
||||
## progressdialog Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(progressdialog LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(progressdialog
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/progressdialog"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/progressdialog"
|
||||
SOURCES
|
||||
main.cpp
|
||||
LIBRARIES
|
||||
Qt::Concurrent
|
||||
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 Concurrent)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(progressdialog
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(progressdialog PUBLIC
|
||||
Qt::Concurrent
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:progressdialog.pro:<NONE>:
|
||||
# CONFIG = "console"
|
||||
install(TARGETS progressdialog
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,19 +1,28 @@
|
||||
# Generated from runfunction.pro.
|
||||
|
||||
#####################################################################
|
||||
## runfunction Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(runfunction LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(runfunction
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/runfunction"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/runfunction"
|
||||
SOURCES
|
||||
main.cpp
|
||||
LIBRARIES
|
||||
Qt::Concurrent
|
||||
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 Concurrent)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(runfunction
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(runfunction PUBLIC
|
||||
Qt::Concurrent
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:runfunction.pro:<NONE>:
|
||||
# CONFIG = "-app_bundle"
|
||||
install(TARGETS runfunction
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,19 +1,28 @@
|
||||
# Generated from wordcount.pro.
|
||||
|
||||
#####################################################################
|
||||
## wordcount Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(wordcount LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(wordcount
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/wordcount"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/wordcount"
|
||||
SOURCES
|
||||
main.cpp
|
||||
LIBRARIES
|
||||
Qt::Concurrent
|
||||
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 Concurrent)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(wordcount
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(wordcount PUBLIC
|
||||
Qt::Concurrent
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:wordcount.pro:<NONE>:
|
||||
# CONFIG = "-app_bundle"
|
||||
install(TARGETS wordcount
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,16 +1,27 @@
|
||||
# Generated from tutorial1.pro.
|
||||
|
||||
#####################################################################
|
||||
## tutorial1 Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(tutorial1 LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(tutorial1
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial1"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial1"
|
||||
SOURCES
|
||||
testqstring.cpp
|
||||
LIBRARIES
|
||||
Qt::Widgets
|
||||
Qt::Test
|
||||
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)
|
||||
find_package(Qt5 COMPONENTS Test)
|
||||
|
||||
add_executable(tutorial1 WIN32 MACOSX_BUNDLE
|
||||
testqstring.cpp
|
||||
)
|
||||
target_link_libraries(tutorial1 PUBLIC
|
||||
Qt::Test
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS tutorial1
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,16 +1,27 @@
|
||||
# Generated from tutorial2.pro.
|
||||
|
||||
#####################################################################
|
||||
## tutorial2 Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(tutorial2 LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(tutorial2
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial2"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial2"
|
||||
SOURCES
|
||||
testqstring.cpp
|
||||
LIBRARIES
|
||||
Qt::Widgets
|
||||
Qt::Test
|
||||
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)
|
||||
find_package(Qt5 COMPONENTS Test)
|
||||
|
||||
add_executable(tutorial2 WIN32 MACOSX_BUNDLE
|
||||
testqstring.cpp
|
||||
)
|
||||
target_link_libraries(tutorial2 PUBLIC
|
||||
Qt::Test
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS tutorial2
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,16 +1,27 @@
|
||||
# Generated from tutorial3.pro.
|
||||
|
||||
#####################################################################
|
||||
## tutorial3 Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(tutorial3 LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(tutorial3
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial3"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial3"
|
||||
SOURCES
|
||||
testgui.cpp
|
||||
LIBRARIES
|
||||
Qt::Widgets
|
||||
Qt::Test
|
||||
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)
|
||||
find_package(Qt5 COMPONENTS Test)
|
||||
|
||||
add_executable(tutorial3 WIN32 MACOSX_BUNDLE
|
||||
testgui.cpp
|
||||
)
|
||||
target_link_libraries(tutorial3 PUBLIC
|
||||
Qt::Test
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS tutorial3
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,16 +1,27 @@
|
||||
# Generated from tutorial4.pro.
|
||||
|
||||
#####################################################################
|
||||
## tutorial4 Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(tutorial4 LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(tutorial4
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial4"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial4"
|
||||
SOURCES
|
||||
testgui.cpp
|
||||
LIBRARIES
|
||||
Qt::Widgets
|
||||
Qt::Test
|
||||
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)
|
||||
find_package(Qt5 COMPONENTS Test)
|
||||
|
||||
add_executable(tutorial4 WIN32 MACOSX_BUNDLE
|
||||
testgui.cpp
|
||||
)
|
||||
target_link_libraries(tutorial4 PUBLIC
|
||||
Qt::Test
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS tutorial4
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,16 +1,27 @@
|
||||
# Generated from tutorial5.pro.
|
||||
|
||||
#####################################################################
|
||||
## tutorial5 Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(tutorial5 LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(tutorial5
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial5"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial5"
|
||||
SOURCES
|
||||
benchmarking.cpp
|
||||
LIBRARIES
|
||||
Qt::Widgets
|
||||
Qt::Test
|
||||
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)
|
||||
find_package(Qt5 COMPONENTS Test)
|
||||
|
||||
add_executable(tutorial5 WIN32 MACOSX_BUNDLE
|
||||
benchmarking.cpp
|
||||
)
|
||||
target_link_libraries(tutorial5 PUBLIC
|
||||
Qt::Test
|
||||
Qt::Widgets
|
||||
)
|
||||
install(TARGETS tutorial5
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,31 +1,35 @@
|
||||
# Generated from books.pro.
|
||||
|
||||
#####################################################################
|
||||
## books Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(books LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(books
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/books"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/books"
|
||||
SOURCES
|
||||
bookdelegate.cpp bookdelegate.h
|
||||
bookwindow.cpp bookwindow.h bookwindow.ui
|
||||
initdb.h
|
||||
main.cpp
|
||||
INCLUDE_DIRECTORIES
|
||||
.
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Sql
|
||||
Qt::Widgets
|
||||
ENABLE_AUTOGEN_TOOLS
|
||||
uic
|
||||
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 Sql)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(books WIN32 MACOSX_BUNDLE
|
||||
bookdelegate.cpp bookdelegate.h
|
||||
books.qrc
|
||||
bookwindow.cpp bookwindow.h bookwindow.ui
|
||||
initdb.h
|
||||
main.cpp
|
||||
)
|
||||
target_include_directories(books PUBLIC
|
||||
.
|
||||
)
|
||||
target_link_libraries(books PUBLIC
|
||||
Qt::Sql
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
# Resources:
|
||||
add_qt_resource(books "books" PREFIX "/" FILES
|
||||
images/star.png)
|
||||
|
||||
|
||||
#### Keys ignored in scope 1:.:.:books.pro:<TRUE>:
|
||||
# TEMPLATE = "app"
|
||||
install(TARGETS books
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,18 +1,30 @@
|
||||
# Generated from cachedtable.pro.
|
||||
|
||||
#####################################################################
|
||||
## cachedtable Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(cachedtable LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(cachedtable
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/cachedtable"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/cachedtable"
|
||||
SOURCES
|
||||
../connection.h
|
||||
main.cpp
|
||||
tableeditor.cpp tableeditor.h
|
||||
LIBRARIES
|
||||
Qt::Sql
|
||||
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 Sql)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(cachedtable WIN32 MACOSX_BUNDLE
|
||||
../connection.h
|
||||
main.cpp
|
||||
tableeditor.cpp tableeditor.h
|
||||
)
|
||||
target_link_libraries(cachedtable PUBLIC
|
||||
Qt::Sql
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS cachedtable
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,28 +1,33 @@
|
||||
# Generated from drilldown.pro.
|
||||
|
||||
#####################################################################
|
||||
## drilldown Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(drilldown LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(drilldown
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/drilldown"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/drilldown"
|
||||
SOURCES
|
||||
../connection.h
|
||||
imageitem.cpp imageitem.h
|
||||
informationwindow.cpp informationwindow.h
|
||||
main.cpp
|
||||
view.cpp view.h
|
||||
LIBRARIES
|
||||
Qt::Sql
|
||||
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 Sql)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(drilldown WIN32 MACOSX_BUNDLE
|
||||
../connection.h
|
||||
drilldown.qrc
|
||||
imageitem.cpp imageitem.h
|
||||
informationwindow.cpp informationwindow.h
|
||||
main.cpp
|
||||
view.cpp view.h
|
||||
)
|
||||
target_link_libraries(drilldown PUBLIC
|
||||
Qt::Sql
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
# Resources:
|
||||
add_qt_resource(drilldown "drilldown" PREFIX "/" FILES
|
||||
images/qt-creator.png
|
||||
images/qt-logo.png
|
||||
images/qt-project.png
|
||||
images/qt-quick.png)
|
||||
|
||||
install(TARGETS drilldown
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,30 +1,34 @@
|
||||
# Generated from masterdetail.pro.
|
||||
|
||||
#####################################################################
|
||||
## masterdetail Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(masterdetail LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(masterdetail
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/masterdetail"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/masterdetail"
|
||||
SOURCES
|
||||
database.h
|
||||
dialog.cpp dialog.h
|
||||
main.cpp
|
||||
mainwindow.cpp mainwindow.h
|
||||
LIBRARIES
|
||||
Qt::Sql
|
||||
Qt::Widgets
|
||||
Qt::Xml
|
||||
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 Sql)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
find_package(Qt5 COMPONENTS Xml)
|
||||
|
||||
add_executable(masterdetail WIN32 MACOSX_BUNDLE
|
||||
database.h
|
||||
dialog.cpp dialog.h
|
||||
main.cpp
|
||||
mainwindow.cpp mainwindow.h
|
||||
masterdetail.qrc
|
||||
)
|
||||
target_link_libraries(masterdetail PUBLIC
|
||||
Qt::Sql
|
||||
Qt::Widgets
|
||||
Qt::Xml
|
||||
)
|
||||
|
||||
# Resources:
|
||||
add_qt_resource(masterdetail "masterdetail" FILES
|
||||
images/icon.png
|
||||
images/image.png)
|
||||
|
||||
|
||||
#### Keys ignored in scope 1:.:masterdetail.pro:<NONE>:
|
||||
# EXAMPLE_FILES = "albumdetails.xml"
|
||||
install(TARGETS masterdetail
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,19 +1,31 @@
|
||||
# Generated from querymodel.pro.
|
||||
|
||||
#####################################################################
|
||||
## querymodel Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(querymodel LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(querymodel
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/querymodel"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/querymodel"
|
||||
SOURCES
|
||||
../connection.h
|
||||
customsqlmodel.cpp customsqlmodel.h
|
||||
editablesqlmodel.cpp editablesqlmodel.h
|
||||
main.cpp
|
||||
LIBRARIES
|
||||
Qt::Sql
|
||||
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 Sql)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(querymodel WIN32 MACOSX_BUNDLE
|
||||
../connection.h
|
||||
customsqlmodel.cpp customsqlmodel.h
|
||||
editablesqlmodel.cpp editablesqlmodel.h
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(querymodel PUBLIC
|
||||
Qt::Sql
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS querymodel
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,17 +1,29 @@
|
||||
# Generated from relationaltablemodel.pro.
|
||||
|
||||
#####################################################################
|
||||
## relationaltablemodel Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(relationaltablemodel LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(relationaltablemodel
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/relationaltablemodel"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/relationaltablemodel"
|
||||
SOURCES
|
||||
../connection.h
|
||||
relationaltablemodel.cpp
|
||||
LIBRARIES
|
||||
Qt::Sql
|
||||
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 Sql)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(relationaltablemodel WIN32 MACOSX_BUNDLE
|
||||
../connection.h
|
||||
relationaltablemodel.cpp
|
||||
)
|
||||
target_link_libraries(relationaltablemodel PUBLIC
|
||||
Qt::Sql
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS relationaltablemodel
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,31 +1,32 @@
|
||||
# Generated from sqlbrowser.pro.
|
||||
|
||||
#####################################################################
|
||||
## sqlbrowser Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(sqlbrowser LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(sqlbrowser
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/sqlbrowser"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/sqlbrowser"
|
||||
SOURCES
|
||||
browser.cpp browser.h
|
||||
browserwidget.ui
|
||||
connectionwidget.cpp connectionwidget.h
|
||||
main.cpp
|
||||
qsqlconnectiondialog.cpp qsqlconnectiondialog.h qsqlconnectiondialog.ui
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Sql
|
||||
Qt::Widgets
|
||||
ENABLE_AUTOGEN_TOOLS
|
||||
uic
|
||||
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 Sql)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(sqlbrowser WIN32 MACOSX_BUNDLE
|
||||
browser.cpp browser.h
|
||||
browserwidget.ui
|
||||
connectionwidget.cpp connectionwidget.h
|
||||
main.cpp
|
||||
qsqlconnectiondialog.cpp qsqlconnectiondialog.h qsqlconnectiondialog.ui
|
||||
)
|
||||
target_link_libraries(sqlbrowser PUBLIC
|
||||
Qt::Sql
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:.:sqlbrowser.pro:<TRUE>:
|
||||
# TEMPLATE = "app"
|
||||
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
|
||||
#### Keys ignored in scope 2:.:.:sqlbrowser.pro:build_all AND NOT build_pass:
|
||||
# CONFIG = "-build_all" "release"
|
||||
install(TARGETS sqlbrowser
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,17 +1,29 @@
|
||||
# Generated from sqlwidgetmapper.pro.
|
||||
|
||||
#####################################################################
|
||||
## sqlwidgetmapper Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(sqlwidgetmapper LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(sqlwidgetmapper
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/sqlwidgetmapper"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/sqlwidgetmapper"
|
||||
SOURCES
|
||||
main.cpp
|
||||
window.cpp window.h
|
||||
LIBRARIES
|
||||
Qt::Sql
|
||||
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 Sql)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(sqlwidgetmapper WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
window.cpp window.h
|
||||
)
|
||||
target_link_libraries(sqlwidgetmapper PUBLIC
|
||||
Qt::Sql
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS sqlwidgetmapper
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,17 +1,29 @@
|
||||
# Generated from tablemodel.pro.
|
||||
|
||||
#####################################################################
|
||||
## tablemodel Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(tablemodel LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(tablemodel
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/tablemodel"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/tablemodel"
|
||||
SOURCES
|
||||
../connection.h
|
||||
tablemodel.cpp
|
||||
LIBRARIES
|
||||
Qt::Sql
|
||||
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 Sql)
|
||||
find_package(Qt5 COMPONENTS Widgets)
|
||||
|
||||
add_executable(tablemodel WIN32 MACOSX_BUNDLE
|
||||
../connection.h
|
||||
tablemodel.cpp
|
||||
)
|
||||
target_link_libraries(tablemodel PUBLIC
|
||||
Qt::Sql
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS tablemodel
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,26 +1,27 @@
|
||||
# Generated from animatedtiles.pro.
|
||||
|
||||
#####################################################################
|
||||
## animatedtiles Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(animatedtiles LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(animatedtiles
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/animatedtiles"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/animatedtiles"
|
||||
SOURCES
|
||||
main.cpp
|
||||
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(animatedtiles WIN32 MACOSX_BUNDLE
|
||||
animatedtiles.qrc
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(animatedtiles PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
# Resources:
|
||||
add_qt_resource(animatedtiles "animatedtiles" FILES
|
||||
images/Time-For-Lunch-2.jpg
|
||||
images/centered.png
|
||||
images/ellipse.png
|
||||
images/figure8.png
|
||||
images/kinetic.png
|
||||
images/random.png
|
||||
images/tile.png)
|
||||
|
||||
install(TARGETS animatedtiles
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,25 +1,30 @@
|
||||
# Generated from easing.pro.
|
||||
|
||||
#####################################################################
|
||||
## easing Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(easing LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(easing
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/easing"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/easing"
|
||||
SOURCES
|
||||
animation.h
|
||||
form.ui
|
||||
main.cpp
|
||||
window.cpp window.h
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Widgets
|
||||
ENABLE_AUTOGEN_TOOLS
|
||||
uic
|
||||
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(easing WIN32 MACOSX_BUNDLE
|
||||
animation.h
|
||||
easing.qrc
|
||||
form.ui
|
||||
main.cpp
|
||||
window.cpp window.h
|
||||
)
|
||||
target_link_libraries(easing PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
# Resources:
|
||||
add_qt_resource(easing "easing" FILES
|
||||
images/qt-logo.png)
|
||||
|
||||
install(TARGETS easing
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,15 +1,26 @@
|
||||
# Generated from moveblocks.pro.
|
||||
|
||||
#####################################################################
|
||||
## moveblocks Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(moveblocks LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(moveblocks
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/moveblocks"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/moveblocks"
|
||||
SOURCES
|
||||
main.cpp
|
||||
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(moveblocks WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(moveblocks PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS moveblocks
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,25 +1,27 @@
|
||||
# Generated from states.pro.
|
||||
|
||||
#####################################################################
|
||||
## states Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(states LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(states
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/states"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/states"
|
||||
SOURCES
|
||||
main.cpp
|
||||
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(states WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
states.qrc
|
||||
)
|
||||
target_link_libraries(states PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
# Resources:
|
||||
add_qt_resource(states "states" FILES
|
||||
accessories-dictionary.png
|
||||
akregator.png
|
||||
digikam.png
|
||||
help-browser.png
|
||||
k3b.png
|
||||
kchart.png)
|
||||
|
||||
install(TARGETS states
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,29 +1,32 @@
|
||||
# Generated from stickman.pro.
|
||||
|
||||
#####################################################################
|
||||
## stickman Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(stickman LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(stickman
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/stickman"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/stickman"
|
||||
SOURCES
|
||||
animation.cpp animation.h
|
||||
graphicsview.cpp graphicsview.h
|
||||
lifecycle.cpp lifecycle.h
|
||||
main.cpp
|
||||
node.cpp node.h
|
||||
rectbutton.cpp rectbutton.h
|
||||
stickman.cpp stickman.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(stickman WIN32 MACOSX_BUNDLE
|
||||
animation.cpp animation.h
|
||||
graphicsview.cpp graphicsview.h
|
||||
lifecycle.cpp lifecycle.h
|
||||
main.cpp
|
||||
node.cpp node.h
|
||||
rectbutton.cpp rectbutton.h
|
||||
stickman.cpp stickman.h stickman.qrc
|
||||
)
|
||||
target_link_libraries(stickman PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
# Resources:
|
||||
add_qt_resource(stickman "stickman" FILES
|
||||
animations/chilling.bin
|
||||
animations/dancing.bin
|
||||
animations/dead.bin
|
||||
animations/jumping.bin)
|
||||
|
||||
install(TARGETS stickman
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,142 +1,43 @@
|
||||
# Generated from sub-attaq.pro.
|
||||
|
||||
#####################################################################
|
||||
## sub-attaq Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(sub-attaq LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(sub-attaq
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/sub-attaq"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/sub-attaq"
|
||||
SOURCES
|
||||
animationmanager.cpp animationmanager.h
|
||||
boat.cpp boat.h boat_p.h
|
||||
bomb.cpp bomb.h
|
||||
graphicsscene.cpp graphicsscene.h
|
||||
main.cpp
|
||||
mainwindow.cpp mainwindow.h
|
||||
pixmapitem.cpp pixmapitem.h
|
||||
progressitem.cpp progressitem.h
|
||||
qanimationstate.cpp qanimationstate.h
|
||||
states.cpp states.h
|
||||
submarine.cpp submarine.h submarine_p.h
|
||||
textinformationitem.cpp textinformationitem.h
|
||||
torpedo.cpp torpedo.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)
|
||||
find_package(Qt5 COMPONENTS OpenGL) # special case
|
||||
|
||||
add_executable(sub-attaq WIN32 MACOSX_BUNDLE
|
||||
animationmanager.cpp animationmanager.h
|
||||
boat.cpp boat.h boat_p.h
|
||||
bomb.cpp bomb.h
|
||||
graphicsscene.cpp graphicsscene.h
|
||||
main.cpp
|
||||
mainwindow.cpp mainwindow.h
|
||||
pixmapitem.cpp pixmapitem.h
|
||||
progressitem.cpp progressitem.h
|
||||
qanimationstate.cpp qanimationstate.h
|
||||
states.cpp states.h
|
||||
subattaq.qrc
|
||||
submarine.cpp submarine.h submarine_p.h
|
||||
textinformationitem.cpp textinformationitem.h
|
||||
torpedo.cpp torpedo.h
|
||||
)
|
||||
|
||||
# Resources:
|
||||
set_source_files_properties("pics/big/background.png"
|
||||
PROPERTIES alias "big/background")
|
||||
set_source_files_properties("pics/big/boat.png"
|
||||
PROPERTIES alias "big/boat")
|
||||
set_source_files_properties("pics/big/bomb.png"
|
||||
PROPERTIES alias "big/bomb")
|
||||
set_source_files_properties("pics/big/explosion/boat/step1.png"
|
||||
PROPERTIES alias "big/explosion/boat/step1")
|
||||
set_source_files_properties("pics/big/explosion/boat/step2.png"
|
||||
PROPERTIES alias "big/explosion/boat/step2")
|
||||
set_source_files_properties("pics/big/explosion/boat/step3.png"
|
||||
PROPERTIES alias "big/explosion/boat/step3")
|
||||
set_source_files_properties("pics/big/explosion/boat/step4.png"
|
||||
PROPERTIES alias "big/explosion/boat/step4")
|
||||
set_source_files_properties("pics/big/explosion/submarine/step1.png"
|
||||
PROPERTIES alias "big/explosion/submarine/step1")
|
||||
set_source_files_properties("pics/big/explosion/submarine/step2.png"
|
||||
PROPERTIES alias "big/explosion/submarine/step2")
|
||||
set_source_files_properties("pics/big/explosion/submarine/step3.png"
|
||||
PROPERTIES alias "big/explosion/submarine/step3")
|
||||
set_source_files_properties("pics/big/explosion/submarine/step4.png"
|
||||
PROPERTIES alias "big/explosion/submarine/step4")
|
||||
set_source_files_properties("pics/big/submarine.png"
|
||||
PROPERTIES alias "big/submarine")
|
||||
set_source_files_properties("pics/big/surface.png"
|
||||
PROPERTIES alias "big/surface")
|
||||
set_source_files_properties("pics/big/torpedo.png"
|
||||
PROPERTIES alias "big/torpedo")
|
||||
set_source_files_properties("pics/scalable/boat.svg"
|
||||
PROPERTIES alias "boat")
|
||||
set_source_files_properties("pics/scalable/sub-attaq.svg"
|
||||
PROPERTIES alias "all")
|
||||
set_source_files_properties("pics/scalable/submarine.svg"
|
||||
PROPERTIES alias "submarine")
|
||||
set_source_files_properties("pics/scalable/torpedo.svg"
|
||||
PROPERTIES alias "torpedo")
|
||||
set_source_files_properties("pics/small/background.png"
|
||||
PROPERTIES alias "small/background")
|
||||
set_source_files_properties("pics/small/boat.png"
|
||||
PROPERTIES alias "small/boat")
|
||||
set_source_files_properties("pics/small/bomb.png"
|
||||
PROPERTIES alias "small/bomb")
|
||||
set_source_files_properties("pics/small/submarine.png"
|
||||
PROPERTIES alias "small/submarine")
|
||||
set_source_files_properties("pics/small/surface.png"
|
||||
PROPERTIES alias "small/surface")
|
||||
set_source_files_properties("pics/small/torpedo.png"
|
||||
PROPERTIES alias "small/torpedo")
|
||||
set_source_files_properties("pics/welcome/logo-a.png"
|
||||
PROPERTIES alias "logo-a")
|
||||
set_source_files_properties("pics/welcome/logo-a2.png"
|
||||
PROPERTIES alias "logo-a2")
|
||||
set_source_files_properties("pics/welcome/logo-b.png"
|
||||
PROPERTIES alias "logo-b")
|
||||
set_source_files_properties("pics/welcome/logo-dash.png"
|
||||
PROPERTIES alias "logo-dash")
|
||||
set_source_files_properties("pics/welcome/logo-excl.png"
|
||||
PROPERTIES alias "logo-excl")
|
||||
set_source_files_properties("pics/welcome/logo-q.png"
|
||||
PROPERTIES alias "logo-q")
|
||||
set_source_files_properties("pics/welcome/logo-s.png"
|
||||
PROPERTIES alias "logo-s")
|
||||
set_source_files_properties("pics/welcome/logo-t.png"
|
||||
PROPERTIES alias "logo-t")
|
||||
set_source_files_properties("pics/welcome/logo-t2.png"
|
||||
PROPERTIES alias "logo-t2")
|
||||
set_source_files_properties("pics/welcome/logo-u.png"
|
||||
PROPERTIES alias "logo-u")
|
||||
add_qt_resource(sub-attaq "subattaq" PREFIX "/" FILES
|
||||
data.xml
|
||||
pics/big/background.png
|
||||
pics/big/boat.png
|
||||
pics/big/bomb.png
|
||||
pics/big/explosion/boat/step1.png
|
||||
pics/big/explosion/boat/step2.png
|
||||
pics/big/explosion/boat/step3.png
|
||||
pics/big/explosion/boat/step4.png
|
||||
pics/big/explosion/submarine/step1.png
|
||||
pics/big/explosion/submarine/step2.png
|
||||
pics/big/explosion/submarine/step3.png
|
||||
pics/big/explosion/submarine/step4.png
|
||||
pics/big/submarine.png
|
||||
pics/big/surface.png
|
||||
pics/big/torpedo.png
|
||||
pics/scalable/boat.svg
|
||||
pics/scalable/sub-attaq.svg
|
||||
pics/scalable/submarine.svg
|
||||
pics/scalable/torpedo.svg
|
||||
pics/small/background.png
|
||||
pics/small/boat.png
|
||||
pics/small/bomb.png
|
||||
pics/small/submarine.png
|
||||
pics/small/surface.png
|
||||
pics/small/torpedo.png
|
||||
pics/welcome/logo-a.png
|
||||
pics/welcome/logo-a2.png
|
||||
pics/welcome/logo-b.png
|
||||
pics/welcome/logo-dash.png
|
||||
pics/welcome/logo-excl.png
|
||||
pics/welcome/logo-q.png
|
||||
pics/welcome/logo-s.png
|
||||
pics/welcome/logo-t.png
|
||||
pics/welcome/logo-t2.png
|
||||
pics/welcome/logo-u.png)
|
||||
|
||||
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
|
||||
extend_target(sub-attaq CONDITION TARGET Qt::OpenGL
|
||||
LIBRARIES
|
||||
Qt::OpenGL
|
||||
target_link_libraries(sub-attaq PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
if (TARGET Qt::OpenGL)
|
||||
target_link_libraries(sub-attaq PUBLIC Qt::OpenGL)
|
||||
endif()
|
||||
|
||||
install(TARGETS sub-attaq
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,16 +1,27 @@
|
||||
# Generated from screenshot.pro.
|
||||
|
||||
#####################################################################
|
||||
## screenshot Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(screenshot LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(screenshot
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/desktop/screenshot"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/desktop/screenshot"
|
||||
SOURCES
|
||||
main.cpp
|
||||
screenshot.cpp screenshot.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(screenshot WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
screenshot.cpp screenshot.h
|
||||
)
|
||||
target_link_libraries(screenshot PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS screenshot
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,23 +1,28 @@
|
||||
# Generated from systray.pro.
|
||||
|
||||
#####################################################################
|
||||
## systray Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(systray LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(systray
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/desktop/systray"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/desktop/systray"
|
||||
SOURCES
|
||||
main.cpp
|
||||
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(systray WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
systray.qrc
|
||||
window.cpp window.h
|
||||
)
|
||||
target_link_libraries(systray PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
# Resources:
|
||||
add_qt_resource(systray "systray" PREFIX "/" FILES
|
||||
images/bad.png
|
||||
images/heart.png
|
||||
images/trash.png)
|
||||
|
||||
install(TARGETS systray
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,27 +1,27 @@
|
||||
# Generated from classwizard.pro.
|
||||
|
||||
#####################################################################
|
||||
## classwizard Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(classwizard LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(classwizard
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/classwizard"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/classwizard"
|
||||
SOURCES
|
||||
classwizard.cpp classwizard.h
|
||||
main.cpp
|
||||
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(classwizard WIN32 MACOSX_BUNDLE
|
||||
classwizard.cpp classwizard.h classwizard.qrc
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(classwizard PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
# Resources:
|
||||
add_qt_resource(classwizard "classwizard" FILES
|
||||
images/background.png
|
||||
images/banner.png
|
||||
images/logo1.png
|
||||
images/logo2.png
|
||||
images/logo3.png
|
||||
images/watermark1.png
|
||||
images/watermark2.png)
|
||||
|
||||
install(TARGETS classwizard
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,16 +1,27 @@
|
||||
# Generated from extension.pro.
|
||||
|
||||
#####################################################################
|
||||
## extension Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(extension LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(extension
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/extension"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/extension"
|
||||
SOURCES
|
||||
finddialog.cpp finddialog.h
|
||||
main.cpp
|
||||
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(extension WIN32 MACOSX_BUNDLE
|
||||
finddialog.cpp finddialog.h
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(extension PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS extension
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,16 +1,27 @@
|
||||
# Generated from findfiles.pro.
|
||||
|
||||
#####################################################################
|
||||
## findfiles Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(findfiles LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(findfiles
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/findfiles"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/findfiles"
|
||||
SOURCES
|
||||
main.cpp
|
||||
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(findfiles WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
window.cpp window.h
|
||||
)
|
||||
target_link_libraries(findfiles PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS findfiles
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,23 +1,29 @@
|
||||
# Generated from licensewizard.pro.
|
||||
|
||||
#####################################################################
|
||||
## licensewizard Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(licensewizard LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(licensewizard
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/licensewizard"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/licensewizard"
|
||||
SOURCES
|
||||
licensewizard.cpp licensewizard.h
|
||||
main.cpp
|
||||
LIBRARIES
|
||||
Qt::Widgets
|
||||
Qt::PrintSupport
|
||||
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)
|
||||
find_package(Qt5 COMPONENTS PrintSupport)
|
||||
|
||||
add_executable(licensewizard WIN32 MACOSX_BUNDLE
|
||||
licensewizard.cpp licensewizard.h licensewizard.qrc
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(licensewizard PUBLIC
|
||||
Qt::PrintSupport
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
# Resources:
|
||||
add_qt_resource(licensewizard "licensewizard" FILES
|
||||
images/logo.png
|
||||
images/watermark.png)
|
||||
|
||||
install(TARGETS licensewizard
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,16 +1,27 @@
|
||||
# Generated from standarddialogs.pro.
|
||||
|
||||
#####################################################################
|
||||
## standarddialogs Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(standarddialogs LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(standarddialogs
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/standarddialogs"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/standarddialogs"
|
||||
SOURCES
|
||||
dialog.cpp dialog.h
|
||||
main.cpp
|
||||
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(standarddialogs WIN32 MACOSX_BUNDLE
|
||||
dialog.cpp dialog.h
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(standarddialogs PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS standarddialogs
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,16 +1,27 @@
|
||||
# Generated from tabdialog.pro.
|
||||
|
||||
#####################################################################
|
||||
## tabdialog Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(tabdialog LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(tabdialog
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/tabdialog"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/tabdialog"
|
||||
SOURCES
|
||||
main.cpp
|
||||
tabdialog.cpp tabdialog.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(tabdialog WIN32 MACOSX_BUNDLE
|
||||
main.cpp
|
||||
tabdialog.cpp tabdialog.h
|
||||
)
|
||||
target_link_libraries(tabdialog PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS tabdialog
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,15 +1,26 @@
|
||||
# Generated from trivialwizard.pro.
|
||||
|
||||
#####################################################################
|
||||
## trivialwizard Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(trivialwizard LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(trivialwizard
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/trivialwizard"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/trivialwizard"
|
||||
SOURCES
|
||||
trivialwizard.cpp
|
||||
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(trivialwizard WIN32 MACOSX_BUNDLE
|
||||
trivialwizard.cpp
|
||||
)
|
||||
target_link_libraries(trivialwizard PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS trivialwizard
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,23 +1,28 @@
|
||||
# Generated from draggableicons.pro.
|
||||
|
||||
#####################################################################
|
||||
## draggableicons Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(draggableicons LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(draggableicons
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/draggableicons"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/draggableicons"
|
||||
SOURCES
|
||||
dragwidget.cpp dragwidget.h
|
||||
main.cpp
|
||||
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(draggableicons WIN32 MACOSX_BUNDLE
|
||||
draggableicons.qrc
|
||||
dragwidget.cpp dragwidget.h
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(draggableicons PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
# Resources:
|
||||
add_qt_resource(draggableicons "draggableicons" FILES
|
||||
images/boat.png
|
||||
images/car.png
|
||||
images/house.png)
|
||||
|
||||
install(TARGETS draggableicons
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,21 +1,28 @@
|
||||
# Generated from draggabletext.pro.
|
||||
|
||||
#####################################################################
|
||||
## draggabletext Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(draggabletext LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(draggabletext
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/draggabletext"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/draggabletext"
|
||||
SOURCES
|
||||
dragwidget.cpp dragwidget.h
|
||||
main.cpp
|
||||
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(draggabletext WIN32 MACOSX_BUNDLE
|
||||
draggabletext.qrc
|
||||
dragwidget.cpp dragwidget.h
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(draggabletext PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
# Resources:
|
||||
add_qt_resource(draggabletext "draggabletext" PREFIX "/dictionary" FILES
|
||||
words.txt)
|
||||
|
||||
install(TARGETS draggabletext
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
@ -1,17 +1,28 @@
|
||||
# Generated from dropsite.pro.
|
||||
|
||||
#####################################################################
|
||||
## dropsite Binary:
|
||||
#####################################################################
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(dropsite LANGUAGES CXX)
|
||||
|
||||
add_qt_executable(dropsite
|
||||
GUI
|
||||
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/dropsite"
|
||||
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/dropsite"
|
||||
SOURCES
|
||||
droparea.cpp droparea.h
|
||||
dropsitewindow.cpp dropsitewindow.h
|
||||
main.cpp
|
||||
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(dropsite WIN32 MACOSX_BUNDLE
|
||||
droparea.cpp droparea.h
|
||||
dropsitewindow.cpp dropsitewindow.h
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(dropsite PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
install(TARGETS dropsite
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user