4
0
mirror of https://github.com/QuasarApp/Patronum.git synced 2025-05-08 13:09:33 +00:00

fix disable testat macroses

This commit is contained in:
Andrei Yankovich 2021-04-02 09:09:10 +03:00
parent a7d6efddea
commit be2c0035fc

@ -17,18 +17,22 @@ include(Patronum/QuasarAppLib/CMake/ccache.cmake)
# Add sub directories
add_subdirectory(Patronum)
set(BuildTests ON)
if (DEFINED TARGET_PLATFORM_TOOLCHAIN)
if (${TARGET_PLATFORM_TOOLCHAIN} STREQUAL "wasm32")
set(BuildTests OFF)
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 (ANDROID)
set(BuildTests OFF)
endif()
if (BuildTests)
if (PATRONUM_TESTS)
add_subdirectory(Tests)
else()
message("The ${PROJECT_NAME} tests is disabled.")