Skip to content

Commit 68ba7e0

Browse files
author
Connor Baker
committed
cmake: enable testing with CTests
1 parent c8f8f21 commit 68ba7e0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ set_target_properties(drjit-core PROPERTIES INTERPROCEDURAL_OPTIMIZATION_RELWITH
246246
set_target_properties(drjit-core PROPERTIES INTERPROCEDURAL_OPTIMIZATION_DEBUG FALSE)
247247

248248
if (DRJIT_ENABLE_TESTS)
249+
include(CTest)
249250
add_subdirectory(tests)
250251
endif()
251252

tests/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
enable_testing()
2-
31
set(TEST_FILES basics.cpp mem.cpp graphviz.cpp vcall.cpp loop.cpp reductions.cpp)
42

53
foreach (TEST_FILE ${TEST_FILES})

0 commit comments

Comments
 (0)