Skip to content

Commit

Permalink
cmake: enable testing with CTests
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor Baker committed Jan 20, 2024
1 parent 3cd2daa commit cbdbd69
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ set_target_properties(drjit-core PROPERTIES INTERPROCEDURAL_OPTIMIZATION_RELWITH
set_target_properties(drjit-core PROPERTIES INTERPROCEDURAL_OPTIMIZATION_DEBUG FALSE)

if (DRJIT_ENABLE_TESTS)
include(CTest)
add_subdirectory(tests)
endif()

Expand Down
2 changes: 0 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
enable_testing()

set(TEST_FILES basics.cpp mem.cpp graphviz.cpp vcall.cpp loop.cpp reductions.cpp)

foreach (TEST_FILE ${TEST_FILES})
Expand Down

0 comments on commit cbdbd69

Please sign in to comment.