forked from Archive/PX4-Autopilot
Only inlcude gtest if standalone build
This commit is contained in:
parent
7c1e38d3ad
commit
d76b704225
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue