Qt-Secret/Qt-Secret-GUI/CMakeLists.txt

29 lines
858 B
CMake
Raw Normal View History

2020-06-02 19:18:53 +03:00
#
2021-01-31 19:55:13 +03:00
# Copyright (C) 2018-2021 QuasarApp.
2020-06-02 19:18:53 +03:00
# Distributed under the lgplv3 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.10)
set(CURRENT_PROJECT "${PROJECT_NAME}-GUI")
2020-06-02 19:18:53 +03:00
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2020-12-27 15:20:33 +03:00
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Quick REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Quick REQUIRED)
file(GLOB SOURCE_CPP
"*.cpp"
"*.qrc"
)
add_executable(${CURRENT_PROJECT} ${SOURCE_CPP})
2021-04-29 23:46:11 +03:00
target_link_libraries(${CURRENT_PROJECT} PRIVATE Qt${QT_VERSION_MAJOR}::Quick Qt-Secret)
target_include_directories(${CURRENT_PROJECT} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})