cmake: Conditionally build the unit tests.

This allows to skip building the unit tests and avoids the dependency
on gtest when doing so.
This commit is contained in:
orbea
2018-12-08 14:06:23 -08:00
parent f510f6ef0d
commit 1327772173
2 changed files with 11 additions and 3 deletions

View File

@ -39,7 +39,10 @@ add_subdirectory(Core)
if (ANDROID)
add_subdirectory(Android/jni)
endif()
add_subdirectory(UnitTests)
if (ENABLE_TESTS)
add_subdirectory(UnitTests)
endif()
if (DSPTOOL)
add_subdirectory(DSPTool)