mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-27 02:04:33 +00:00
Some checks failed
buildbot/DocsGenerator Build finished.
buildbot/Wasm32Builder Build finished.
buildbot/AndroidBuilder_v8Qt6 Build finished.
buildbot/AndroidBuilder_v7 Build finished.
buildbot/LinuxCMakeBuilder Build finished.
buildbot/AndroidBuilder_v8 Build finished.
buildbot/LinuxCMakeBuilderQt6 Build finished.
buildbot/WindowsBuilder Build finished.
buildbot/WindowsCMakeBuilder Build finished.
37 lines
832 B
CMake
37 lines
832 B
CMake
#
|
|
# Copyright (C) 2021-2022 QuasarApp.
|
|
# Distributed under the GPLv3 software license, see the accompanying
|
|
# Everyone is permitted to copy and distribute verbatim copies
|
|
# of this license document, but changing it is not allowed.
|
|
#
|
|
|
|
cmake_minimum_required(VERSION 3.18)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Gui Qml Quick)
|
|
set(CURRENT_PROJECT "TestQMLWidgets")
|
|
|
|
|
|
file(GLOB_RECURSE SOURCE_CPP
|
|
"*.cpp" "*.h"
|
|
)
|
|
|
|
file(GLOB_RECURSE SOURCE_QRC
|
|
"*.qrc"
|
|
)
|
|
|
|
set(ALL_SOURCES ${SOURCE_CPP} ${SOURCE_QRC})
|
|
set(PUBLIC_INCUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
add_executable(${CURRENT_PROJECT} ${ALL_SOURCES} )
|
|
|
|
target_link_libraries(${CURRENT_PROJECT} PUBLIC
|
|
Qt::Core
|
|
Qt::Gui
|
|
Qt::Qml
|
|
Qt::Quick
|
|
)
|
|
|
|
target_include_directories(${CURRENT_PROJECT} PUBLIC ${PUBLIC_INCUDE_DIR})
|