Patronum/CMakeLists.txt
2021-04-20 17:55:01 +03:00

46 lines
1.0 KiB
CMake
Executable File

#
# Copyright (C) 2018-2021 QuasarApp.
# 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)
project(Patronum LANGUAGES CXX)
if(TARGET ${PROJECT_NAME})
message("The ${PROJECT_NAME} arledy included in main Project")
return()
endif()
include(Patronum/QuasarAppLib/CMake/QuasarApp.cmake)
# Add sub directories
add_subdirectory(Patronum)
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()
endif()
if (ANDROID)
set(PATRONUM_TESTS OFF)
endif()
endif()
if (PATRONUM_TESTS)
add_subdirectory(Tests)
else()
message("The ${PROJECT_NAME} tests is disabled.")
endif()
include(Patronum/QuasarAppLib/CMake/QuasarAppCITargets.cmake)
initAll()
addDoc("Patronum" ${CMAKE_CURRENT_SOURCE_DIR}/doxygen.conf)