Examples: Fix whitespace issues in CMakeLists.txt
Change-Id: I8e6dd1f250f8be6016ee4164cb2ab7034cbb1203 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 80a76df1784a135fa1d86ac88f8c4d2dc6bf8c35)
This commit is contained in:
parent
fa0faf4c9c
commit
8df7ae768e
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/bindableproperties/bindablesubscription")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/bindableproperties/bindablesubscription")
|
||||||
@ -22,6 +22,7 @@ qt_add_executable(bindablesubscription
|
|||||||
bindablesubscription.cpp bindablesubscription.h
|
bindablesubscription.cpp bindablesubscription.h
|
||||||
bindableuser.cpp bindableuser.h
|
bindableuser.cpp bindableuser.h
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(bindablesubscription PUBLIC
|
target_link_libraries(bindablesubscription PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/bindableproperties/subscription")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/bindableproperties/subscription")
|
||||||
@ -21,13 +21,13 @@ qt_add_executable(subscription
|
|||||||
subscription.cpp subscription.h
|
subscription.cpp subscription.h
|
||||||
user.cpp user.h
|
user.cpp user.h
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(subscription PUBLIC
|
target_link_libraries(subscription PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(countries_resource_files
|
set(countries_resource_files
|
||||||
"../shared/finland.png"
|
"../shared/finland.png"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneclient")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneclient")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(localfortuneclient
|
|||||||
client.cpp client.h
|
client.cpp client.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(localfortuneclient PROPERTIES
|
set_target_properties(localfortuneclient PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(localfortuneclient PUBLIC
|
target_link_libraries(localfortuneclient PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneserver")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneserver")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(localfortuneserver
|
|||||||
main.cpp
|
main.cpp
|
||||||
server.cpp server.h
|
server.cpp server.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(localfortuneserver PROPERTIES
|
set_target_properties(localfortuneserver PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(localfortuneserver PUBLIC
|
target_link_libraries(localfortuneserver PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/ipc/sharedmemory")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/ipc/sharedmemory")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(sharedmemory
|
|||||||
dialog.cpp dialog.h dialog.ui
|
dialog.cpp dialog.h dialog.ui
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(sharedmemory PROPERTIES
|
set_target_properties(sharedmemory PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(sharedmemory PUBLIC
|
target_link_libraries(sharedmemory PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/mimetypes/mimetypebrowser")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/mimetypes/mimetypebrowser")
|
||||||
@ -20,10 +20,12 @@ qt_add_executable(mimetypebrowser
|
|||||||
mainwindow.cpp mainwindow.h
|
mainwindow.cpp mainwindow.h
|
||||||
mimetypemodel.cpp mimetypemodel.h
|
mimetypemodel.cpp mimetypemodel.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(mimetypebrowser PROPERTIES
|
set_target_properties(mimetypebrowser PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE FALSE
|
MACOSX_BUNDLE FALSE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(mimetypebrowser PUBLIC
|
target_link_libraries(mimetypebrowser PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(Qt6 REQUIRED COMPONENTS Widgets)
|
find_package(Qt6 REQUIRED COMPONENTS Widgets)
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/serialization/cbordump")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/serialization/cbordump")
|
||||||
@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core)
|
|||||||
qt_add_executable(cbordump
|
qt_add_executable(cbordump
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(cbordump PROPERTIES
|
set_target_properties(cbordump PROPERTIES
|
||||||
WIN32_EXECUTABLE FALSE
|
WIN32_EXECUTABLE FALSE
|
||||||
MACOSX_BUNDLE FALSE
|
MACOSX_BUNDLE FALSE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(cbordump PUBLIC
|
target_link_libraries(cbordump PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
)
|
)
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/serialization/convert")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/serialization/convert")
|
||||||
@ -25,10 +25,12 @@ qt_add_executable(convert
|
|||||||
textconverter.cpp textconverter.h
|
textconverter.cpp textconverter.h
|
||||||
xmlconverter.cpp xmlconverter.h
|
xmlconverter.cpp xmlconverter.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(convert PROPERTIES
|
set_target_properties(convert PROPERTIES
|
||||||
WIN32_EXECUTABLE FALSE
|
WIN32_EXECUTABLE FALSE
|
||||||
MACOSX_BUNDLE FALSE
|
MACOSX_BUNDLE FALSE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(convert PUBLIC
|
target_link_libraries(convert PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
)
|
)
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/serialization/savegame")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/serialization/savegame")
|
||||||
@ -21,10 +21,12 @@ qt_add_executable(savegame
|
|||||||
level.cpp level.h
|
level.cpp level.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(savegame PROPERTIES
|
set_target_properties(savegame PROPERTIES
|
||||||
WIN32_EXECUTABLE FALSE
|
WIN32_EXECUTABLE FALSE
|
||||||
MACOSX_BUNDLE FALSE
|
MACOSX_BUNDLE FALSE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(savegame PUBLIC
|
target_link_libraries(savegame PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
)
|
)
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/threads/mandelbrot")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/threads/mandelbrot")
|
||||||
@ -20,10 +20,12 @@ qt_add_executable(mandelbrot
|
|||||||
mandelbrotwidget.cpp mandelbrotwidget.h
|
mandelbrotwidget.cpp mandelbrotwidget.h
|
||||||
renderthread.cpp renderthread.h
|
renderthread.cpp renderthread.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(mandelbrot PROPERTIES
|
set_target_properties(mandelbrot PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(mandelbrot PUBLIC
|
target_link_libraries(mandelbrot PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/threads/queuedcustomtype")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/threads/queuedcustomtype")
|
||||||
@ -21,10 +21,12 @@ qt_add_executable(queuedcustomtype
|
|||||||
renderthread.cpp renderthread.h
|
renderthread.cpp renderthread.h
|
||||||
window.cpp window.h
|
window.cpp window.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(queuedcustomtype PROPERTIES
|
set_target_properties(queuedcustomtype PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(queuedcustomtype PUBLIC
|
target_link_libraries(queuedcustomtype PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/threads/semaphores")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/threads/semaphores")
|
||||||
@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core)
|
|||||||
qt_add_executable(semaphores
|
qt_add_executable(semaphores
|
||||||
semaphores.cpp
|
semaphores.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(semaphores PROPERTIES
|
set_target_properties(semaphores PROPERTIES
|
||||||
WIN32_EXECUTABLE FALSE
|
WIN32_EXECUTABLE FALSE
|
||||||
MACOSX_BUNDLE FALSE
|
MACOSX_BUNDLE FALSE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(semaphores PUBLIC
|
target_link_libraries(semaphores PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
)
|
)
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/threads/waitconditions")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/threads/waitconditions")
|
||||||
@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core)
|
|||||||
qt_add_executable(waitconditions
|
qt_add_executable(waitconditions
|
||||||
waitconditions.cpp
|
waitconditions.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(waitconditions PROPERTIES
|
set_target_properties(waitconditions PROPERTIES
|
||||||
WIN32_EXECUTABLE FALSE
|
WIN32_EXECUTABLE FALSE
|
||||||
MACOSX_BUNDLE FALSE
|
MACOSX_BUNDLE FALSE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(waitconditions PUBLIC
|
target_link_libraries(waitconditions PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
)
|
)
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/tools/contiguouscache")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/tools/contiguouscache")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(contiguouscache
|
|||||||
main.cpp
|
main.cpp
|
||||||
randomlistmodel.cpp randomlistmodel.h
|
randomlistmodel.cpp randomlistmodel.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(contiguouscache PROPERTIES
|
set_target_properties(contiguouscache PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(contiguouscache PUBLIC
|
target_link_libraries(contiguouscache PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/tools/customtype")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/tools/customtype")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(customtype
|
|||||||
main.cpp
|
main.cpp
|
||||||
message.cpp message.h
|
message.cpp message.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(customtype PROPERTIES
|
set_target_properties(customtype PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(customtype PUBLIC
|
target_link_libraries(customtype PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/tools/customtypesending")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/tools/customtypesending")
|
||||||
@ -20,10 +20,12 @@ qt_add_executable(customtypesending
|
|||||||
message.cpp message.h
|
message.cpp message.h
|
||||||
window.cpp window.h
|
window.cpp window.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(customtypesending PROPERTIES
|
set_target_properties(customtypesending PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(customtypesending PUBLIC
|
target_link_libraries(customtypesending PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/dbus/chat")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/dbus/chat")
|
||||||
@ -20,6 +20,7 @@ qt_add_dbus_interface(chat_SRCS
|
|||||||
org.example.chat.xml
|
org.example.chat.xml
|
||||||
chat_interface
|
chat_interface
|
||||||
)
|
)
|
||||||
|
|
||||||
qt_add_dbus_adaptor(chat_SRCS
|
qt_add_dbus_adaptor(chat_SRCS
|
||||||
org.example.chat.xml
|
org.example.chat.xml
|
||||||
qobject.h
|
qobject.h
|
||||||
@ -33,10 +34,12 @@ qt_add_executable(chat
|
|||||||
chatsetnickname.ui
|
chatsetnickname.ui
|
||||||
${chat_SRCS}
|
${chat_SRCS}
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(chat PROPERTIES
|
set_target_properties(chat PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(chat PUBLIC
|
target_link_libraries(chat PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::DBus
|
Qt::DBus
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/dbus/listnames")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/dbus/listnames")
|
||||||
@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core DBus)
|
|||||||
qt_add_executable(listnames
|
qt_add_executable(listnames
|
||||||
listnames.cpp
|
listnames.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(listnames PROPERTIES
|
set_target_properties(listnames PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(listnames PUBLIC
|
target_link_libraries(listnames PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::DBus
|
Qt::DBus
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/car")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/car")
|
||||||
@ -28,10 +28,12 @@ qt_add_executable(car
|
|||||||
main.cpp
|
main.cpp
|
||||||
${car_SRCS}
|
${car_SRCS}
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(car PROPERTIES
|
set_target_properties(car PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(car PUBLIC
|
target_link_libraries(car PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::DBus
|
Qt::DBus
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/controller")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/controller")
|
||||||
@ -26,10 +26,12 @@ qt_add_executable(controller
|
|||||||
main.cpp
|
main.cpp
|
||||||
${controller_SRCS}
|
${controller_SRCS}
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(controller PROPERTIES
|
set_target_properties(controller PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(controller PUBLIC
|
target_link_libraries(controller PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::DBus
|
Qt::DBus
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/embedded/digiflip")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/embedded/digiflip")
|
||||||
@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
|
|||||||
qt_add_executable(digiflip
|
qt_add_executable(digiflip
|
||||||
digiflip.cpp
|
digiflip.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(digiflip PROPERTIES
|
set_target_properties(digiflip PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(digiflip PUBLIC
|
target_link_libraries(digiflip PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/embedded/flickable")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/embedded/flickable")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(flickable
|
|||||||
flickable.cpp flickable.h
|
flickable.cpp flickable.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(flickable PROPERTIES
|
set_target_properties(flickable PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(flickable PUBLIC
|
target_link_libraries(flickable PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/embedded/flightinfo")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/embedded/flightinfo")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(flightinfo
|
|||||||
flightinfo.cpp
|
flightinfo.cpp
|
||||||
form.ui
|
form.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(flightinfo PROPERTIES
|
set_target_properties(flightinfo PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(flightinfo PUBLIC
|
target_link_libraries(flightinfo PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
@ -30,7 +32,6 @@ target_link_libraries(flightinfo PUBLIC
|
|||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(flightinfo_resource_files
|
set(flightinfo_resource_files
|
||||||
"aircraft.png"
|
"aircraft.png"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/embedded/lightmaps")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/embedded/lightmaps")
|
||||||
@ -21,10 +21,12 @@ qt_add_executable(lightmaps
|
|||||||
mapzoom.cpp mapzoom.h
|
mapzoom.cpp mapzoom.h
|
||||||
slippymap.cpp slippymap.h
|
slippymap.cpp slippymap.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(lightmaps PROPERTIES
|
set_target_properties(lightmaps PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(lightmaps PUBLIC
|
target_link_libraries(lightmaps PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/embedded/raycasting")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/embedded/raycasting")
|
||||||
@ -18,17 +18,18 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
|
|||||||
qt_add_executable(raycasting
|
qt_add_executable(raycasting
|
||||||
raycasting.cpp
|
raycasting.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(raycasting PROPERTIES
|
set_target_properties(raycasting PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(raycasting PUBLIC
|
target_link_libraries(raycasting PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(raycasting_resource_files
|
set(raycasting_resource_files
|
||||||
"textures.png"
|
"textures.png"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/embedded/styleexample")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/embedded/styleexample")
|
||||||
@ -19,17 +19,18 @@ qt_add_executable(styleexample
|
|||||||
main.cpp
|
main.cpp
|
||||||
stylewidget.cpp stylewidget.h stylewidget.ui
|
stylewidget.cpp stylewidget.h stylewidget.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(styleexample PROPERTIES
|
set_target_properties(styleexample PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(styleexample PUBLIC
|
target_link_libraries(styleexample PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(styleexample_resource_files
|
set(styleexample_resource_files
|
||||||
"files/add.png"
|
"files/add.png"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
cmake_minimum_required(VERSION 3.16)
|
cmake_minimum_required(VERSION 3.16)
|
||||||
project(analogclock LANGUAGES CXX)
|
project(analogclock LANGUAGES CXX)
|
||||||
|
|
||||||
|
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
|
|
||||||
set(CMAKE_AUTOMOC ON)
|
set(CMAKE_AUTOMOC ON)
|
||||||
@ -9,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/gui/gui_analogclock")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/gui/gui_analogclock")
|
||||||
@ -20,13 +19,16 @@ qt_add_executable(gui_analogclock
|
|||||||
../rasterwindow/rasterwindow.cpp ../rasterwindow/rasterwindow.h
|
../rasterwindow/rasterwindow.cpp ../rasterwindow/rasterwindow.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(gui_analogclock PROPERTIES
|
set_target_properties(gui_analogclock PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(gui_analogclock PUBLIC
|
target_include_directories(gui_analogclock PUBLIC
|
||||||
../rasterwindow
|
../rasterwindow
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(gui_analogclock PUBLIC
|
target_link_libraries(gui_analogclock PUBLIC
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
)
|
)
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/gui/rasterwindow")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/gui/rasterwindow")
|
||||||
@ -19,13 +19,16 @@ qt_add_executable(rasterwindow
|
|||||||
main.cpp
|
main.cpp
|
||||||
rasterwindow.cpp rasterwindow.h
|
rasterwindow.cpp rasterwindow.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(rasterwindow PROPERTIES
|
set_target_properties(rasterwindow PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(rasterwindow PUBLIC
|
target_include_directories(rasterwindow PUBLIC
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(rasterwindow PUBLIC
|
target_link_libraries(rasterwindow PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/blockingfortuneclient")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/blockingfortuneclient")
|
||||||
@ -20,10 +20,12 @@ qt_add_executable(blockingfortuneclient
|
|||||||
fortunethread.cpp fortunethread.h
|
fortunethread.cpp fortunethread.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(blockingfortuneclient PROPERTIES
|
set_target_properties(blockingfortuneclient PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(blockingfortuneclient PUBLIC
|
target_link_libraries(blockingfortuneclient PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/broadcastreceiver")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/broadcastreceiver")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(broadcastreceiver
|
|||||||
main.cpp
|
main.cpp
|
||||||
receiver.cpp receiver.h
|
receiver.cpp receiver.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(broadcastreceiver PROPERTIES
|
set_target_properties(broadcastreceiver PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(broadcastreceiver PUBLIC
|
target_link_libraries(broadcastreceiver PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/broadcastsender")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/broadcastsender")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(broadcastsender
|
|||||||
main.cpp
|
main.cpp
|
||||||
sender.cpp sender.h
|
sender.cpp sender.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(broadcastsender PROPERTIES
|
set_target_properties(broadcastsender PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(broadcastsender PUBLIC
|
target_link_libraries(broadcastsender PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/dnslookup")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/dnslookup")
|
||||||
@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Network)
|
|||||||
qt_add_executable(dnslookup
|
qt_add_executable(dnslookup
|
||||||
dnslookup.cpp dnslookup.h
|
dnslookup.cpp dnslookup.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(dnslookup PROPERTIES
|
set_target_properties(dnslookup PROPERTIES
|
||||||
WIN32_EXECUTABLE FALSE
|
WIN32_EXECUTABLE FALSE
|
||||||
MACOSX_BUNDLE FALSE
|
MACOSX_BUNDLE FALSE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(dnslookup PUBLIC
|
target_link_libraries(dnslookup PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Network
|
Qt::Network
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/download")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/download")
|
||||||
@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Network)
|
|||||||
qt_add_executable(download
|
qt_add_executable(download
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(download PROPERTIES
|
set_target_properties(download PROPERTIES
|
||||||
WIN32_EXECUTABLE FALSE
|
WIN32_EXECUTABLE FALSE
|
||||||
MACOSX_BUNDLE FALSE
|
MACOSX_BUNDLE FALSE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(download PUBLIC
|
target_link_libraries(download PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Network
|
Qt::Network
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/downloadmanager")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/downloadmanager")
|
||||||
@ -20,10 +20,12 @@ qt_add_executable(downloadmanager
|
|||||||
main.cpp
|
main.cpp
|
||||||
textprogressbar.cpp textprogressbar.h
|
textprogressbar.cpp textprogressbar.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(downloadmanager PROPERTIES
|
set_target_properties(downloadmanager PROPERTIES
|
||||||
WIN32_EXECUTABLE FALSE
|
WIN32_EXECUTABLE FALSE
|
||||||
MACOSX_BUNDLE FALSE
|
MACOSX_BUNDLE FALSE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(downloadmanager PUBLIC
|
target_link_libraries(downloadmanager PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Network
|
Qt::Network
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/fortuneclient")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/fortuneclient")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(fortuneclient
|
|||||||
client.cpp client.h
|
client.cpp client.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(fortuneclient PROPERTIES
|
set_target_properties(fortuneclient PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(fortuneclient PUBLIC
|
target_link_libraries(fortuneclient PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/fortuneserver")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/fortuneserver")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(fortuneserver
|
|||||||
main.cpp
|
main.cpp
|
||||||
server.cpp server.h
|
server.cpp server.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(fortuneserver PROPERTIES
|
set_target_properties(fortuneserver PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(fortuneserver PUBLIC
|
target_link_libraries(fortuneserver PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/googlesuggest")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/googlesuggest")
|
||||||
@ -20,10 +20,12 @@ qt_add_executable(googlesuggest
|
|||||||
main.cpp
|
main.cpp
|
||||||
searchbox.cpp searchbox.h
|
searchbox.cpp searchbox.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(googlesuggest PROPERTIES
|
set_target_properties(googlesuggest PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(googlesuggest PUBLIC
|
target_link_libraries(googlesuggest PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/http")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/http")
|
||||||
@ -20,10 +20,12 @@ qt_add_executable(http
|
|||||||
httpwindow.cpp httpwindow.h
|
httpwindow.cpp httpwindow.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(http PROPERTIES
|
set_target_properties(http PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(http PUBLIC
|
target_link_libraries(http PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/loopback")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/loopback")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(loopback
|
|||||||
dialog.cpp dialog.h
|
dialog.cpp dialog.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(loopback PROPERTIES
|
set_target_properties(loopback PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(loopback PUBLIC
|
target_link_libraries(loopback PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/multicastreceiver")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/multicastreceiver")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(multicastreceiver
|
|||||||
main.cpp
|
main.cpp
|
||||||
receiver.cpp receiver.h
|
receiver.cpp receiver.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(multicastreceiver PROPERTIES
|
set_target_properties(multicastreceiver PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(multicastreceiver PUBLIC
|
target_link_libraries(multicastreceiver PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/multicastsender")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/multicastsender")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(multicastsender
|
|||||||
main.cpp
|
main.cpp
|
||||||
sender.cpp sender.h
|
sender.cpp sender.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(multicastsender PROPERTIES
|
set_target_properties(multicastsender PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(multicastsender PUBLIC
|
target_link_libraries(multicastsender PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/multistreamclient")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/multistreamclient")
|
||||||
@ -23,10 +23,12 @@ qt_add_executable(multistreamclient
|
|||||||
movieconsumer.cpp movieconsumer.h
|
movieconsumer.cpp movieconsumer.h
|
||||||
timeconsumer.cpp timeconsumer.h
|
timeconsumer.cpp timeconsumer.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(multistreamclient PROPERTIES
|
set_target_properties(multistreamclient PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(multistreamclient PUBLIC
|
target_link_libraries(multistreamclient PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/multistreamserver")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/multistreamserver")
|
||||||
@ -23,10 +23,12 @@ qt_add_executable(multistreamserver
|
|||||||
server.cpp server.h
|
server.cpp server.h
|
||||||
timeprovider.cpp timeprovider.h
|
timeprovider.cpp timeprovider.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(multistreamserver PROPERTIES
|
set_target_properties(multistreamserver PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(multistreamserver PUBLIC
|
target_link_libraries(multistreamserver PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/network-chat")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/network-chat")
|
||||||
@ -23,10 +23,12 @@ qt_add_executable(network-chat
|
|||||||
peermanager.cpp peermanager.h
|
peermanager.cpp peermanager.h
|
||||||
server.cpp server.h
|
server.cpp server.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(network-chat PROPERTIES
|
set_target_properties(network-chat PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(network-chat PUBLIC
|
target_link_libraries(network-chat PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/securesocketclient")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/securesocketclient")
|
||||||
@ -21,10 +21,12 @@ qt_add_executable(securesocketclient
|
|||||||
sslclient.cpp sslclient.h sslclient.ui
|
sslclient.cpp sslclient.h sslclient.ui
|
||||||
sslerrors.ui
|
sslerrors.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(securesocketclient PROPERTIES
|
set_target_properties(securesocketclient PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(securesocketclient PUBLIC
|
target_link_libraries(securesocketclient PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
@ -32,7 +34,6 @@ target_link_libraries(securesocketclient PUBLIC
|
|||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(securesocketclient_resource_files
|
set(securesocketclient_resource_files
|
||||||
"encrypted.png"
|
"encrypted.png"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/secureudpclient")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/secureudpclient")
|
||||||
@ -21,10 +21,12 @@ qt_add_executable(secureudpclient
|
|||||||
main.cpp
|
main.cpp
|
||||||
mainwindow.cpp mainwindow.h mainwindow.ui
|
mainwindow.cpp mainwindow.h mainwindow.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(secureudpclient PROPERTIES
|
set_target_properties(secureudpclient PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(secureudpclient PUBLIC
|
target_link_libraries(secureudpclient PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/secureudpserver")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/secureudpserver")
|
||||||
@ -21,10 +21,12 @@ qt_add_executable(secureudpserver
|
|||||||
nicselector.cpp nicselector.h nicselector.ui
|
nicselector.cpp nicselector.h nicselector.ui
|
||||||
server.cpp server.h
|
server.cpp server.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(secureudpserver PROPERTIES
|
set_target_properties(secureudpserver PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(secureudpserver PUBLIC
|
target_link_libraries(secureudpserver PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/threadedfortuneserver")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/threadedfortuneserver")
|
||||||
@ -21,10 +21,12 @@ qt_add_executable(threadedfortuneserver
|
|||||||
fortunethread.cpp fortunethread.h
|
fortunethread.cpp fortunethread.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(threadedfortuneserver PROPERTIES
|
set_target_properties(threadedfortuneserver PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(threadedfortuneserver PUBLIC
|
target_link_libraries(threadedfortuneserver PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/torrent")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/torrent")
|
||||||
@ -30,10 +30,12 @@ qt_add_executable(torrent
|
|||||||
torrentserver.cpp torrentserver.h
|
torrentserver.cpp torrentserver.h
|
||||||
trackerclient.cpp trackerclient.h
|
trackerclient.cpp trackerclient.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(torrent PROPERTIES
|
set_target_properties(torrent PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(torrent PUBLIC
|
target_link_libraries(torrent PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
@ -41,7 +43,6 @@ target_link_libraries(torrent PUBLIC
|
|||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(icons_resource_files
|
set(icons_resource_files
|
||||||
"icons/1downarrow.png"
|
"icons/1downarrow.png"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/2dpainting")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/2dpainting")
|
||||||
@ -22,10 +22,12 @@ qt_add_executable(2dpainting
|
|||||||
widget.cpp widget.h
|
widget.cpp widget.h
|
||||||
window.cpp window.h
|
window.cpp window.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(2dpainting PROPERTIES
|
set_target_properties(2dpainting PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(2dpainting PUBLIC
|
target_link_libraries(2dpainting PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/computegles31")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/computegles31")
|
||||||
@ -19,17 +19,18 @@ qt_add_executable(computegles31
|
|||||||
glwindow.cpp glwindow.h
|
glwindow.cpp glwindow.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(computegles31 PROPERTIES
|
set_target_properties(computegles31 PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(computegles31 PUBLIC
|
target_link_libraries(computegles31 PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::OpenGL
|
Qt::OpenGL
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(computegles31_resource_files
|
set(computegles31_resource_files
|
||||||
"Qt-logo-medium.png"
|
"Qt-logo-medium.png"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/contextinfo")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/contextinfo")
|
||||||
@ -20,10 +20,12 @@ qt_add_executable(contextinfo
|
|||||||
renderwindow.cpp renderwindow.h
|
renderwindow.cpp renderwindow.h
|
||||||
widget.cpp widget.h
|
widget.cpp widget.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(contextinfo PROPERTIES
|
set_target_properties(contextinfo PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(contextinfo PUBLIC
|
target_link_libraries(contextinfo PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/cube")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/cube")
|
||||||
@ -20,10 +20,12 @@ qt_add_executable(cube
|
|||||||
main.cpp
|
main.cpp
|
||||||
mainwidget.cpp mainwidget.h
|
mainwidget.cpp mainwidget.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(cube PROPERTIES
|
set_target_properties(cube PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(cube PUBLIC
|
target_link_libraries(cube PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
@ -32,7 +34,6 @@ target_link_libraries(cube PUBLIC
|
|||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(shaders_resource_files
|
set(shaders_resource_files
|
||||||
"fshader.glsl"
|
"fshader.glsl"
|
||||||
@ -45,6 +46,7 @@ qt6_add_resources(cube "shaders"
|
|||||||
FILES
|
FILES
|
||||||
${shaders_resource_files}
|
${shaders_resource_files}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(textures_resource_files
|
set(textures_resource_files
|
||||||
"cube.png"
|
"cube.png"
|
||||||
)
|
)
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/hellogl2")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/hellogl2")
|
||||||
@ -22,10 +22,12 @@ qt_add_executable(hellogl2
|
|||||||
mainwindow.cpp mainwindow.h
|
mainwindow.cpp mainwindow.h
|
||||||
window.cpp window.h
|
window.cpp window.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(hellogl2 PROPERTIES
|
set_target_properties(hellogl2 PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(hellogl2 PUBLIC
|
target_link_libraries(hellogl2 PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/hellogles3")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/hellogles3")
|
||||||
@ -20,17 +20,18 @@ qt_add_executable(hellogles3
|
|||||||
glwindow.cpp glwindow.h
|
glwindow.cpp glwindow.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(hellogles3 PROPERTIES
|
set_target_properties(hellogles3 PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(hellogles3 PUBLIC
|
target_link_libraries(hellogles3 PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::OpenGL
|
Qt::OpenGL
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(hellogles3_resource_files
|
set(hellogles3_resource_files
|
||||||
"qtlogo.png"
|
"qtlogo.png"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/hellowindow")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/hellowindow")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(hellowindow
|
|||||||
hellowindow.cpp hellowindow.h
|
hellowindow.cpp hellowindow.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(hellowindow PROPERTIES
|
set_target_properties(hellowindow PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(hellowindow PUBLIC
|
target_link_libraries(hellowindow PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::CorePrivate
|
Qt::CorePrivate
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/openglwindow")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/openglwindow")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(openglwindow
|
|||||||
main.cpp
|
main.cpp
|
||||||
openglwindow.cpp openglwindow.h
|
openglwindow.cpp openglwindow.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(openglwindow PROPERTIES
|
set_target_properties(openglwindow PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(openglwindow PUBLIC
|
target_include_directories(openglwindow PUBLIC
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
)
|
)
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/paintedwindow")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/paintedwindow")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(paintedwindow
|
|||||||
main.cpp
|
main.cpp
|
||||||
paintedwindow.cpp paintedwindow.h
|
paintedwindow.cpp paintedwindow.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(paintedwindow PROPERTIES
|
set_target_properties(paintedwindow PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(paintedwindow PUBLIC
|
target_link_libraries(paintedwindow PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/qopenglwidget")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/qopenglwidget")
|
||||||
@ -21,10 +21,12 @@ qt_add_executable(qopenglwidget
|
|||||||
main.cpp
|
main.cpp
|
||||||
mainwindow.cpp mainwindow.h
|
mainwindow.cpp mainwindow.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(qopenglwidget PROPERTIES
|
set_target_properties(qopenglwidget PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(qopenglwidget PUBLIC
|
target_link_libraries(qopenglwidget PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
@ -33,7 +35,6 @@ target_link_libraries(qopenglwidget PUBLIC
|
|||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(texture_resource_files
|
set(texture_resource_files
|
||||||
"qt.png"
|
"qt.png"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/qopenglwindow")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/qopenglwindow")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(qopenglwindow
|
|||||||
background_renderer.cpp background_renderer.h
|
background_renderer.cpp background_renderer.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(qopenglwindow PROPERTIES
|
set_target_properties(qopenglwindow PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(qopenglwindow PUBLIC
|
target_include_directories(qopenglwindow PUBLIC
|
||||||
.
|
.
|
||||||
)
|
)
|
||||||
@ -33,7 +35,6 @@ target_link_libraries(qopenglwindow PUBLIC
|
|||||||
Qt::OpenGL
|
Qt::OpenGL
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(shaders_resource_files
|
set(shaders_resource_files
|
||||||
"background.frag"
|
"background.frag"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/textures")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/textures")
|
||||||
@ -20,10 +20,12 @@ qt_add_executable(textures
|
|||||||
main.cpp
|
main.cpp
|
||||||
window.cpp window.h
|
window.cpp window.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(textures PROPERTIES
|
set_target_properties(textures PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(textures PUBLIC
|
target_link_libraries(textures PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
@ -32,7 +34,6 @@ target_link_libraries(textures PUBLIC
|
|||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(textures_resource_files
|
set(textures_resource_files
|
||||||
"images/side1.png"
|
"images/side1.png"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/threadedqopenglwidget")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/threadedqopenglwidget")
|
||||||
@ -20,10 +20,12 @@ qt_add_executable(threadedqopenglwidget
|
|||||||
main.cpp
|
main.cpp
|
||||||
mainwindow.cpp mainwindow.h
|
mainwindow.cpp mainwindow.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(threadedqopenglwidget PROPERTIES
|
set_target_properties(threadedqopenglwidget PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(threadedqopenglwidget PUBLIC
|
target_link_libraries(threadedqopenglwidget PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qpa/qrasterwindow")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qpa/qrasterwindow")
|
||||||
@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui)
|
|||||||
qt_add_executable(qrasterwindow
|
qt_add_executable(qrasterwindow
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(qrasterwindow PROPERTIES
|
set_target_properties(qrasterwindow PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(qrasterwindow PUBLIC
|
target_link_libraries(qrasterwindow PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qpa/windows")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qpa/windows")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(windows
|
|||||||
main.cpp
|
main.cpp
|
||||||
window.cpp window.h
|
window.cpp window.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(windows PROPERTIES
|
set_target_properties(windows PROPERTIES
|
||||||
WIN32_EXECUTABLE FALSE
|
WIN32_EXECUTABLE FALSE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(windows PUBLIC
|
target_link_libraries(windows PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::CorePrivate
|
Qt::CorePrivate
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtconcurrent/imagescaling")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtconcurrent/imagescaling")
|
||||||
@ -20,10 +20,12 @@ qt_add_executable(imagescaling
|
|||||||
imagescaling.cpp imagescaling.h
|
imagescaling.cpp imagescaling.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(imagescaling PROPERTIES
|
set_target_properties(imagescaling PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(imagescaling PUBLIC
|
target_link_libraries(imagescaling PUBLIC
|
||||||
Qt::Concurrent
|
Qt::Concurrent
|
||||||
Qt::Core
|
Qt::Core
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtconcurrent/map")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtconcurrent/map")
|
||||||
@ -18,15 +18,18 @@ find_package(Qt6 REQUIRED COMPONENTS Concurrent Core Gui)
|
|||||||
qt_add_executable(mapdemo
|
qt_add_executable(mapdemo
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(mapdemo PROPERTIES
|
set_target_properties(mapdemo PROPERTIES
|
||||||
WIN32_EXECUTABLE FALSE
|
WIN32_EXECUTABLE FALSE
|
||||||
MACOSX_BUNDLE FALSE
|
MACOSX_BUNDLE FALSE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(mapdemo PUBLIC
|
target_link_libraries(mapdemo PUBLIC
|
||||||
Qt::Concurrent
|
Qt::Concurrent
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
)
|
)
|
||||||
|
|
||||||
install(TARGETS mapdemo
|
install(TARGETS mapdemo
|
||||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtconcurrent/progressdialog")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtconcurrent/progressdialog")
|
||||||
@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Concurrent Core Gui Widgets)
|
|||||||
qt_add_executable(progressdialog
|
qt_add_executable(progressdialog
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(progressdialog PROPERTIES
|
set_target_properties(progressdialog PROPERTIES
|
||||||
WIN32_EXECUTABLE FALSE
|
WIN32_EXECUTABLE FALSE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(progressdialog PUBLIC
|
target_link_libraries(progressdialog PUBLIC
|
||||||
Qt::Concurrent
|
Qt::Concurrent
|
||||||
Qt::Core
|
Qt::Core
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtconcurrent/runfunction")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtconcurrent/runfunction")
|
||||||
@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Concurrent Core Gui Widgets)
|
|||||||
qt_add_executable(runfunction
|
qt_add_executable(runfunction
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(runfunction PROPERTIES
|
set_target_properties(runfunction PROPERTIES
|
||||||
WIN32_EXECUTABLE FALSE
|
WIN32_EXECUTABLE FALSE
|
||||||
MACOSX_BUNDLE FALSE
|
MACOSX_BUNDLE FALSE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(runfunction PUBLIC
|
target_link_libraries(runfunction PUBLIC
|
||||||
Qt::Concurrent
|
Qt::Concurrent
|
||||||
Qt::Core
|
Qt::Core
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtconcurrent/wordcount")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtconcurrent/wordcount")
|
||||||
@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Concurrent Core Gui Widgets)
|
|||||||
qt_add_executable(wordcount
|
qt_add_executable(wordcount
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(wordcount PROPERTIES
|
set_target_properties(wordcount PROPERTIES
|
||||||
WIN32_EXECUTABLE FALSE
|
WIN32_EXECUTABLE FALSE
|
||||||
MACOSX_BUNDLE FALSE
|
MACOSX_BUNDLE FALSE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(wordcount PUBLIC
|
target_link_libraries(wordcount PUBLIC
|
||||||
Qt::Concurrent
|
Qt::Concurrent
|
||||||
Qt::Core
|
Qt::Core
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial1")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial1")
|
||||||
@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Test Widgets)
|
|||||||
qt_add_executable(tutorial1
|
qt_add_executable(tutorial1
|
||||||
testqstring.cpp
|
testqstring.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(tutorial1 PROPERTIES
|
set_target_properties(tutorial1 PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(tutorial1 PUBLIC
|
target_link_libraries(tutorial1 PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial2")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial2")
|
||||||
@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Test Widgets)
|
|||||||
qt_add_executable(tutorial2
|
qt_add_executable(tutorial2
|
||||||
testqstring.cpp
|
testqstring.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(tutorial2 PROPERTIES
|
set_target_properties(tutorial2 PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(tutorial2 PUBLIC
|
target_link_libraries(tutorial2 PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial3")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial3")
|
||||||
@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Test Widgets)
|
|||||||
qt_add_executable(tutorial3
|
qt_add_executable(tutorial3
|
||||||
testgui.cpp
|
testgui.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(tutorial3 PROPERTIES
|
set_target_properties(tutorial3 PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(tutorial3 PUBLIC
|
target_link_libraries(tutorial3 PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial4")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial4")
|
||||||
@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Test Widgets)
|
|||||||
qt_add_executable(tutorial4
|
qt_add_executable(tutorial4
|
||||||
testgui.cpp
|
testgui.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(tutorial4 PROPERTIES
|
set_target_properties(tutorial4 PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(tutorial4 PUBLIC
|
target_link_libraries(tutorial4 PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial5")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial5")
|
||||||
@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Test Widgets)
|
|||||||
qt_add_executable(tutorial5
|
qt_add_executable(tutorial5
|
||||||
benchmarking.cpp
|
benchmarking.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(tutorial5 PROPERTIES
|
set_target_properties(tutorial5 PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(tutorial5 PUBLIC
|
target_link_libraries(tutorial5 PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/sql/books")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/sql/books")
|
||||||
@ -21,10 +21,12 @@ qt_add_executable(books
|
|||||||
initdb.h
|
initdb.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(books PROPERTIES
|
set_target_properties(books PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(books PUBLIC
|
target_include_directories(books PUBLIC
|
||||||
.
|
.
|
||||||
)
|
)
|
||||||
@ -36,7 +38,6 @@ target_link_libraries(books PUBLIC
|
|||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(books_resource_files
|
set(books_resource_files
|
||||||
"images/star.png"
|
"images/star.png"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/sql/cachedtable")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/sql/cachedtable")
|
||||||
@ -20,10 +20,12 @@ qt_add_executable(cachedtable
|
|||||||
main.cpp
|
main.cpp
|
||||||
tableeditor.cpp tableeditor.h
|
tableeditor.cpp tableeditor.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(cachedtable PROPERTIES
|
set_target_properties(cachedtable PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(cachedtable PUBLIC
|
target_link_libraries(cachedtable PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/sql/drilldown")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/sql/drilldown")
|
||||||
@ -22,10 +22,12 @@ qt_add_executable(drilldown
|
|||||||
main.cpp
|
main.cpp
|
||||||
view.cpp view.h
|
view.cpp view.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(drilldown PROPERTIES
|
set_target_properties(drilldown PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(drilldown PUBLIC
|
target_link_libraries(drilldown PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
@ -33,7 +35,6 @@ target_link_libraries(drilldown PUBLIC
|
|||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(drilldown_resource_files
|
set(drilldown_resource_files
|
||||||
"images/qt-creator.png"
|
"images/qt-creator.png"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/sql/masterdetail")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/sql/masterdetail")
|
||||||
@ -21,10 +21,12 @@ qt_add_executable(masterdetail
|
|||||||
main.cpp
|
main.cpp
|
||||||
mainwindow.cpp mainwindow.h
|
mainwindow.cpp mainwindow.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(masterdetail PROPERTIES
|
set_target_properties(masterdetail PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(masterdetail PUBLIC
|
target_link_libraries(masterdetail PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
@ -33,7 +35,6 @@ target_link_libraries(masterdetail PUBLIC
|
|||||||
Qt::Xml
|
Qt::Xml
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(masterdetail_resource_files
|
set(masterdetail_resource_files
|
||||||
"images/icon.png"
|
"images/icon.png"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/sql/querymodel")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/sql/querymodel")
|
||||||
@ -21,10 +21,12 @@ qt_add_executable(querymodel
|
|||||||
editablesqlmodel.cpp editablesqlmodel.h
|
editablesqlmodel.cpp editablesqlmodel.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(querymodel PROPERTIES
|
set_target_properties(querymodel PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(querymodel PUBLIC
|
target_link_libraries(querymodel PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/sql/relationaltablemodel")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/sql/relationaltablemodel")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(relationaltablemodel
|
|||||||
../connection.h
|
../connection.h
|
||||||
relationaltablemodel.cpp
|
relationaltablemodel.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(relationaltablemodel PROPERTIES
|
set_target_properties(relationaltablemodel PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(relationaltablemodel PUBLIC
|
target_link_libraries(relationaltablemodel PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/sql/sqlbrowser")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/sql/sqlbrowser")
|
||||||
@ -22,10 +22,12 @@ qt_add_executable(sqlbrowser
|
|||||||
main.cpp
|
main.cpp
|
||||||
qsqlconnectiondialog.cpp qsqlconnectiondialog.h qsqlconnectiondialog.ui
|
qsqlconnectiondialog.cpp qsqlconnectiondialog.h qsqlconnectiondialog.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(sqlbrowser PROPERTIES
|
set_target_properties(sqlbrowser PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(sqlbrowser PUBLIC
|
target_link_libraries(sqlbrowser PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/sql/sqlwidgetmapper")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/sql/sqlwidgetmapper")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(sqlwidgetmapper
|
|||||||
main.cpp
|
main.cpp
|
||||||
window.cpp window.h
|
window.cpp window.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(sqlwidgetmapper PROPERTIES
|
set_target_properties(sqlwidgetmapper PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(sqlwidgetmapper PUBLIC
|
target_link_libraries(sqlwidgetmapper PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/sql/tablemodel")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/sql/tablemodel")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(tablemodel
|
|||||||
../connection.h
|
../connection.h
|
||||||
tablemodel.cpp
|
tablemodel.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(tablemodel PROPERTIES
|
set_target_properties(tablemodel PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(tablemodel PUBLIC
|
target_link_libraries(tablemodel PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/vulkan/hellovulkancubes")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/vulkan/hellovulkancubes")
|
||||||
@ -24,10 +24,12 @@ qt_add_executable(hellovulkancubes
|
|||||||
shader.cpp shader.h
|
shader.cpp shader.h
|
||||||
vulkanwindow.cpp vulkanwindow.h
|
vulkanwindow.cpp vulkanwindow.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(hellovulkancubes PROPERTIES
|
set_target_properties(hellovulkancubes PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(hellovulkancubes PUBLIC
|
target_link_libraries(hellovulkancubes PUBLIC
|
||||||
Qt::Concurrent
|
Qt::Concurrent
|
||||||
Qt::Core
|
Qt::Core
|
||||||
@ -35,14 +37,15 @@ target_link_libraries(hellovulkancubes PUBLIC
|
|||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set_source_files_properties("../shared/block.buf"
|
set_source_files_properties("../shared/block.buf"
|
||||||
PROPERTIES QT_RESOURCE_ALIAS "block.buf"
|
PROPERTIES QT_RESOURCE_ALIAS "block.buf"
|
||||||
)
|
)
|
||||||
|
|
||||||
set_source_files_properties("../shared/qt_logo.buf"
|
set_source_files_properties("../shared/qt_logo.buf"
|
||||||
PROPERTIES QT_RESOURCE_ALIAS "qt_logo.buf"
|
PROPERTIES QT_RESOURCE_ALIAS "qt_logo.buf"
|
||||||
)
|
)
|
||||||
|
|
||||||
set(hellovulkancubes_resource_files
|
set(hellovulkancubes_resource_files
|
||||||
"../shared/block.buf"
|
"../shared/block.buf"
|
||||||
"../shared/qt_logo.buf"
|
"../shared/qt_logo.buf"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/vulkan/hellovulkantexture")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/vulkan/hellovulkantexture")
|
||||||
@ -19,16 +19,17 @@ qt_add_executable(hellovulkantexture
|
|||||||
hellovulkantexture.cpp hellovulkantexture.h
|
hellovulkantexture.cpp hellovulkantexture.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(hellovulkantexture PROPERTIES
|
set_target_properties(hellovulkantexture PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(hellovulkantexture PUBLIC
|
target_link_libraries(hellovulkantexture PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(hellovulkantexture_resource_files
|
set(hellovulkantexture_resource_files
|
||||||
"qt256.png"
|
"qt256.png"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/vulkan/hellovulkantriangle")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/vulkan/hellovulkantriangle")
|
||||||
@ -19,23 +19,26 @@ qt_add_executable(hellovulkantriangle
|
|||||||
../shared/trianglerenderer.cpp ../shared/trianglerenderer.h
|
../shared/trianglerenderer.cpp ../shared/trianglerenderer.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(hellovulkantriangle PROPERTIES
|
set_target_properties(hellovulkantriangle PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(hellovulkantriangle PUBLIC
|
target_link_libraries(hellovulkantriangle PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set_source_files_properties("../shared/color_frag.spv"
|
set_source_files_properties("../shared/color_frag.spv"
|
||||||
PROPERTIES QT_RESOURCE_ALIAS "color_frag.spv"
|
PROPERTIES QT_RESOURCE_ALIAS "color_frag.spv"
|
||||||
)
|
)
|
||||||
|
|
||||||
set_source_files_properties("../shared/color_vert.spv"
|
set_source_files_properties("../shared/color_vert.spv"
|
||||||
PROPERTIES QT_RESOURCE_ALIAS "color_vert.spv"
|
PROPERTIES QT_RESOURCE_ALIAS "color_vert.spv"
|
||||||
)
|
)
|
||||||
|
|
||||||
set(hellovulkantriangle_resource_files
|
set(hellovulkantriangle_resource_files
|
||||||
"../shared/color_frag.spv"
|
"../shared/color_frag.spv"
|
||||||
"../shared/color_vert.spv"
|
"../shared/color_vert.spv"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/vulkan/hellovulkanwidget")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/vulkan/hellovulkanwidget")
|
||||||
@ -20,24 +20,27 @@ qt_add_executable(hellovulkanwidget
|
|||||||
hellovulkanwidget.cpp hellovulkanwidget.h
|
hellovulkanwidget.cpp hellovulkanwidget.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(hellovulkanwidget PROPERTIES
|
set_target_properties(hellovulkanwidget PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(hellovulkanwidget PUBLIC
|
target_link_libraries(hellovulkanwidget PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set_source_files_properties("../shared/color_frag.spv"
|
set_source_files_properties("../shared/color_frag.spv"
|
||||||
PROPERTIES QT_RESOURCE_ALIAS "color_frag.spv"
|
PROPERTIES QT_RESOURCE_ALIAS "color_frag.spv"
|
||||||
)
|
)
|
||||||
|
|
||||||
set_source_files_properties("../shared/color_vert.spv"
|
set_source_files_properties("../shared/color_vert.spv"
|
||||||
PROPERTIES QT_RESOURCE_ALIAS "color_vert.spv"
|
PROPERTIES QT_RESOURCE_ALIAS "color_vert.spv"
|
||||||
)
|
)
|
||||||
|
|
||||||
set(hellovulkanwidget_resource_files
|
set(hellovulkanwidget_resource_files
|
||||||
"../shared/color_frag.spv"
|
"../shared/color_frag.spv"
|
||||||
"../shared/color_vert.spv"
|
"../shared/color_vert.spv"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/vulkan/hellovulkanwindow")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/vulkan/hellovulkanwindow")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(hellovulkanwindow
|
|||||||
hellovulkanwindow.cpp hellovulkanwindow.h
|
hellovulkanwindow.cpp hellovulkanwindow.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(hellovulkanwindow PROPERTIES
|
set_target_properties(hellovulkanwindow PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(hellovulkanwindow PUBLIC
|
target_link_libraries(hellovulkanwindow PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/animation/easing")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/animation/easing")
|
||||||
@ -21,17 +21,18 @@ qt_add_executable(easing
|
|||||||
main.cpp
|
main.cpp
|
||||||
window.cpp window.h
|
window.cpp window.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(easing PROPERTIES
|
set_target_properties(easing PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(easing PUBLIC
|
target_link_libraries(easing PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(easing_resource_files
|
set(easing_resource_files
|
||||||
"images/qt-logo.png"
|
"images/qt-logo.png"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/desktop/screenshot")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/desktop/screenshot")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(screenshot
|
|||||||
main.cpp
|
main.cpp
|
||||||
screenshot.cpp screenshot.h
|
screenshot.cpp screenshot.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(screenshot PROPERTIES
|
set_target_properties(screenshot PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(screenshot PUBLIC
|
target_link_libraries(screenshot PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/desktop/systray")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/desktop/systray")
|
||||||
@ -19,17 +19,18 @@ qt_add_executable(systray
|
|||||||
main.cpp
|
main.cpp
|
||||||
window.cpp window.h
|
window.cpp window.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(systray PROPERTIES
|
set_target_properties(systray PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(systray PUBLIC
|
target_link_libraries(systray PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(systray_resource_files
|
set(systray_resource_files
|
||||||
"images/bad.png"
|
"images/bad.png"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/dialogs/classwizard")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/dialogs/classwizard")
|
||||||
@ -19,17 +19,18 @@ qt_add_executable(classwizard
|
|||||||
classwizard.cpp classwizard.h
|
classwizard.cpp classwizard.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(classwizard PROPERTIES
|
set_target_properties(classwizard PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(classwizard PUBLIC
|
target_link_libraries(classwizard PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(classwizard_resource_files
|
set(classwizard_resource_files
|
||||||
"images/background.png"
|
"images/background.png"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/dialogs/extension")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/dialogs/extension")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(extension
|
|||||||
finddialog.cpp finddialog.h
|
finddialog.cpp finddialog.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(extension PROPERTIES
|
set_target_properties(extension PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(extension PUBLIC
|
target_link_libraries(extension PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/dialogs/findfiles")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/dialogs/findfiles")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(findfiles
|
|||||||
main.cpp
|
main.cpp
|
||||||
window.cpp window.h
|
window.cpp window.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(findfiles PROPERTIES
|
set_target_properties(findfiles PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(findfiles PUBLIC
|
target_link_libraries(findfiles PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/dialogs/licensewizard")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/dialogs/licensewizard")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(licensewizard
|
|||||||
licensewizard.cpp licensewizard.h
|
licensewizard.cpp licensewizard.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(licensewizard PROPERTIES
|
set_target_properties(licensewizard PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(licensewizard PUBLIC
|
target_link_libraries(licensewizard PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
@ -30,7 +32,6 @@ target_link_libraries(licensewizard PUBLIC
|
|||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(licensewizard_resource_files
|
set(licensewizard_resource_files
|
||||||
"images/logo.png"
|
"images/logo.png"
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/dialogs/standarddialogs")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/dialogs/standarddialogs")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(standarddialogs
|
|||||||
dialog.cpp dialog.h
|
dialog.cpp dialog.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(standarddialogs PROPERTIES
|
set_target_properties(standarddialogs PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(standarddialogs PUBLIC
|
target_link_libraries(standarddialogs PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/dialogs/tabdialog")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/dialogs/tabdialog")
|
||||||
@ -19,10 +19,12 @@ qt_add_executable(tabdialog
|
|||||||
main.cpp
|
main.cpp
|
||||||
tabdialog.cpp tabdialog.h
|
tabdialog.cpp tabdialog.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(tabdialog PROPERTIES
|
set_target_properties(tabdialog PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(tabdialog PUBLIC
|
target_link_libraries(tabdialog PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/dialogs/trivialwizard")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/dialogs/trivialwizard")
|
||||||
@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
|
|||||||
qt_add_executable(trivialwizard
|
qt_add_executable(trivialwizard
|
||||||
trivialwizard.cpp
|
trivialwizard.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(trivialwizard PROPERTIES
|
set_target_properties(trivialwizard PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(trivialwizard PUBLIC
|
target_link_libraries(trivialwizard PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||||
set(INSTALL_EXAMPLESDIR "examples")
|
set(INSTALL_EXAMPLESDIR "examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/draggableicons")
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/draggableicons")
|
||||||
@ -19,17 +19,18 @@ qt_add_executable(draggableicons
|
|||||||
dragwidget.cpp dragwidget.h
|
dragwidget.cpp dragwidget.h
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(draggableicons PROPERTIES
|
set_target_properties(draggableicons PROPERTIES
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(draggableicons PUBLIC
|
target_link_libraries(draggableicons PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Resources:
|
# Resources:
|
||||||
set(draggableicons_resource_files
|
set(draggableicons_resource_files
|
||||||
"images/boat.png"
|
"images/boat.png"
|
||||||
|
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