Patronum/CMakeLists.txt

42 lines
974 B
CMake
Raw Normal View History

2020-04-17 21:55:54 +03:00
#
2021-01-31 20:00:51 +03:00
# Copyright (C) 2018-2021 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
2020-04-26 15:13:41 +03:00
include(Patronum/QuasarAppLib/CMake/ccache.cmake)
2020-04-17 21:55:54 +03:00
# Add sub directories
add_subdirectory(Patronum)
2021-03-30 18:45:39 +03:00
2021-04-01 16:59:03 +03:00
set(BuildTests ON)
if (DEFINED TARGET_PLATFORM_TOOLCHAIN)
if (${TARGET_PLATFORM_TOOLCHAIN} STREQUAL "wasm32")
set(BuildTests OFF)
endif()
endif()
if (ANDROID)
set(BuildTests OFF)
endif()
if (BuildTests)
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-04-26 15:13:41 +03:00
include(Patronum/QuasarAppLib/CMake/QuasarAppCITargets.cmake)
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