mirror of
https://github.com/PoroCYon/teakra.git
synced 2025-06-18 22:35:40 -04:00
Only build unit tests for standalong project
This commit is contained in:
parent
9c822d20fb
commit
ce80ae414c
@ -10,6 +10,7 @@ endif()
|
|||||||
|
|
||||||
option(TEAKRA_WARNINGS_AS_ERRORS "Warnings as errors" ${MASTER_PROJECT})
|
option(TEAKRA_WARNINGS_AS_ERRORS "Warnings as errors" ${MASTER_PROJECT})
|
||||||
option(TEAKRA_BUILD_TOOLS "Build tools" ${MASTER_PROJECT})
|
option(TEAKRA_BUILD_TOOLS "Build tools" ${MASTER_PROJECT})
|
||||||
|
option(TEAKRA_BUILD_UNIT_TESTS "Build unit tests" ${MASTER_PROJECT})
|
||||||
option(TEAKRA_RUN_TESTS "Run Teakra accuracy tests" OFF)
|
option(TEAKRA_RUN_TESTS "Run Teakra accuracy tests" OFF)
|
||||||
|
|
||||||
# Set hard requirements for C++
|
# Set hard requirements for C++
|
||||||
@ -83,4 +84,6 @@ add_subdirectory(externals)
|
|||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
||||||
# Teakra tests
|
# Teakra tests
|
||||||
add_subdirectory(tests)
|
if (TEAKRA_BUILD_UNIT_TESTS)
|
||||||
|
add_subdirectory(tests)
|
||||||
|
endif()
|
||||||
|
8
externals/CMakeLists.txt
vendored
8
externals/CMakeLists.txt
vendored
@ -1,3 +1,5 @@
|
|||||||
add_library(catch INTERFACE)
|
if (TEAKRA_BUILD_UNIT_TESTS)
|
||||||
target_include_directories(catch INTERFACE
|
add_library(catch INTERFACE)
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/catch>)
|
target_include_directories(catch INTERFACE
|
||||||
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/catch>)
|
||||||
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user