Patronum/CMakeLists.txt

54 lines
1.1 KiB
CMake
Raw Permalink Normal View History

2020-04-17 21:55:54 +03:00
#
2025-02-07 10:00:05 +01:00
# Copyright (C) 2018-2025 QuasarApp.
2020-04-17 21:55:54 +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.
#
2020-05-03 20:36:20 +03:00
cmake_minimum_required(VERSION 3.10)
2020-05-06 23:23:46 +03:00
project(Patronum LANGUAGES CXX)
2020-04-19 18:00:28 +03:00
if(TARGET ${PROJECT_NAME})
message("The ${PROJECT_NAME} arledy included in main Project")
return()
endif()
2020-04-17 21:55:54 +03:00
2023-09-29 17:21:35 +02:00
include(submodules/QuasarAppLib/CMake/QuasarApp.cmake)
2020-04-17 21:55:54 +03:00
# Add sub directories
2023-09-29 17:21:35 +02:00
2023-09-30 09:19:01 +02:00
if (IOS)
message("The ios not support QProcess class.")
initAll()
return()
endif()
2023-09-29 17:21:35 +02:00
add_subdirectory(submodules/QuasarAppLib)
2020-04-17 21:55:54 +03:00
add_subdirectory(Patronum)
2021-03-30 18:45:39 +03:00
2021-04-02 09:09:10 +03:00
if (NOT DEFINED PATRONUM_TESTS)
set(PATRONUM_TESTS ON)
if (DEFINED TARGET_PLATFORM_TOOLCHAIN)
if (${TARGET_PLATFORM_TOOLCHAIN} STREQUAL "wasm32")
set(PATRONUM_TESTS OFF)
endif()
2021-04-01 16:59:03 +03:00
endif()
if (ANDROID OR IOS)
2021-04-02 09:09:10 +03:00
set(PATRONUM_TESTS OFF)
endif()
2021-04-01 16:59:03 +03:00
endif()
2021-04-02 09:09:10 +03:00
if (PATRONUM_TESTS)
2021-03-30 18:45:39 +03:00
add_subdirectory(Tests)
2021-03-30 20:15:57 +03:00
else()
2021-04-01 16:59:03 +03:00
message("The ${PROJECT_NAME} tests is disabled.")
2021-03-30 18:45:39 +03:00
endif()
2020-05-09 00:42:02 +03:00
initAll()
2020-04-26 15:13:41 +03:00
addDoc("Patronum" ${CMAKE_CURRENT_SOURCE_DIR}/doxygen.conf)
2020-04-17 21:55:54 +03:00