CMake: Fix ctest not detecting tests at root

This commit is contained in:
Vicki Pfau 2020-07-30 19:02:30 -07:00
parent 287fd86e6a
commit 1084f378c1
1 changed files with 3 additions and 0 deletions

View File

@ -965,6 +965,9 @@ endif()
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)