CMake: Fix ctest not detecting tests at root
Vicki Pfau vi@endrift.com
Thu, 30 Jul 2020 19:02:30 -0700
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
CMakeLists.txt
→
CMakeLists.txt
@@ -965,6 +965,9 @@
if(NOT USE_CMOCKA) set(BUILD_SUITE OFF) endif() +if(BUILD_TEST OR BUILD_SUITE OR BUILD_CINEMA) + enable_testing() +endif() add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/src/platform/test ${CMAKE_CURRENT_BINARY_DIR}/test) if(BUILD_EXAMPLE)