4
1
mirror of https://github.com/QuasarApp/CQtDeployer.git synced 2025-05-05 22:19:36 +00:00

35 lines
665 B
CMake
Raw Normal View History

2022-08-17 17:59:48 +03:00
cmake_minimum_required(VERSION 3.16)
project(webui LANGUAGES CXX)
set(CMAKE_AUTOMOC ON)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Gui WebEngineWidgets)
2022-08-17 23:35:03 +03:00
2022-08-27 22:30:55 +03:00
# needed for test RPATH functions
get_filename_component(QT_QT_ROOT "${Qt${QT_VERSION_MAJOR}Core_DIR}/../../.." ABSOLUTE)
set(CMAKE_BUILD_RPATH ${QT_QT_ROOT}/bin)
2022-08-17 23:35:03 +03:00
# Resources:
file(GLOB_RECURSE SOURCE_QRC
"*.qrc"
)
2022-08-17 17:59:48 +03:00
2022-08-17 23:35:03 +03:00
add_executable(webui
2022-08-17 17:59:48 +03:00
main.cpp
webuihandler.cpp webuihandler.h
2022-08-17 23:35:03 +03:00
${SOURCE_QRC}
2022-08-17 17:59:48 +03:00
)
set_target_properties(webui PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(webui PUBLIC
Qt::Core
Qt::Gui
Qt::WebEngineWidgets
2022-08-17 17:59:48 +03:00
)