ViewSolutions/CMakeLists.txt

38 lines
940 B
CMake
Raw Normal View History

2020-04-27 20:09:21 +03:00
#
2025-02-17 13:48:52 +01:00
# Copyright (C) 2018-2025 QuasarApp.
2020-04-27 20:09:21 +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.5)
2021-04-16 16:36:24 +03:00
project(ViewSolutions LANGUAGES CXX)
2020-04-27 20:09:21 +03:00
if(TARGET ${PROJECT_NAME})
message("The ${PROJECT_NAME} arledy included in main Project")
return()
endif()
2025-02-17 13:48:52 +01:00
if (ANDROID OR IOS)
option(VIEWSOLUTIONS_EXAMPLES "Build examples" OFF)
else()
option(VIEWSOLUTIONS_EXAMPLES "Build examples" ON)
2020-10-09 23:36:22 +03:00
endif()
2025-02-17 13:48:52 +01:00
2021-04-20 18:34:12 +03:00
include(CMake/QuasarApp.cmake)
2021-04-16 16:36:24 +03:00
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Quick QuickControls2 REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Quick QuickControls2 REQUIRED)
add_subdirectory(ViewSolutions)
2021-03-22 12:00:41 +03:00
if (VIEWSOLUTIONS_EXAMPLES )
add_subdirectory(Examples)
endif()
2020-04-27 20:09:21 +03:00
2021-04-16 16:36:24 +03:00
initAll()
addDoc(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/doxygen.conf)