Only inlcude gtest if standalone build

This commit is contained in:
kamilritz 2019-11-01 09:16:41 +01:00 committed by Daniel Agar
parent 7c1e38d3ad
commit d76b704225
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ add_subdirectory(l1)
add_subdirectory(tecs)
add_subdirectory(validation)
if(BUILD_TESTING)
if(BUILD_TESTING AND CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
add_subdirectory(test)
endif()