| 1 |
# Copyright (C) 2022 The Qt Company Ltd. |
| 2 |
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause |
| 3 |
|
| 4 |
cmake_minimum_required(VERSION 3.16) |
| 5 |
project(dropsite LANGUAGES CXX) |
| 6 |
|
| 7 |
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets) |
| 8 |
|
| 9 |
qt_standard_project_setup() |
| 10 |
|
| 11 |
qt_add_executable(dropsite |
| 12 |
droparea.cpp droparea.h |
| 13 |
dropsitewindow.cpp dropsitewindow.h |
| 14 |
main.cpp |
| 15 |
) |
| 16 |
|
| 17 |
set_target_properties(dropsite PROPERTIES |
| 18 |
WIN32_EXECUTABLE TRUE |
| 19 |
MACOSX_BUNDLE TRUE |
| 20 |
) |
| 21 |
|
| 22 |
target_link_libraries(dropsite PRIVATE |
| 23 |
Qt6::Core |
| 24 |
Qt6::Gui |
| 25 |
Qt6::Widgets |
| 26 |
) |
| 27 |
|
| 28 |
install(TARGETS dropsite |
| 29 |
BUNDLE DESTINATION . |
| 30 |
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 31 |
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 32 |
) |
| 33 |
|
| 34 |
qt_generate_deploy_app_script( |
| 35 |
TARGET dropsite |
| 36 |
OUTPUT_SCRIPT deploy_script |
| 37 |
NO_UNSUPPORTED_PLATFORM_ERROR |
| 38 |
) |
| 39 |
install(SCRIPT ${deploy_script}) |