Skip to content

Commit cab4d1e

Browse files
committed
Fix CTest setup
1 parent f2a88e9 commit cab4d1e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: CMakeLists.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
99
add_subdirectory(lib)
1010
add_subdirectory(src)
1111

12-
if (BUILD_TESTING)
13-
add_subdirectory(tests)
12+
include(CTest)
13+
if(BUILD_TESTING)
14+
enable_testing()
15+
add_subdirectory(tests)
1416
endif()

0 commit comments

Comments
 (0)