OpenMC/tests/cpp_unit_tests/CMakeLists.txt
lhchg 3bedd043d0
update math function unit test with catch2 (#2955)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-06-19 15:56:02 +00:00

14 lines
372 B
CMake

set(TEST_NAMES
test_distribution
test_file_utils
test_tally
test_interpolate
test_math
# Add additional unit test files here
)
foreach(test ${TEST_NAMES})
add_executable(${test} ${test}.cpp)
target_link_libraries(${test} Catch2::Catch2WithMain libopenmc)
add_test(NAME ${test} COMMAND ${test} WORKING_DIRECTORY ${UNIT_TEST_BIN_OUTPUT_DIR})
endforeach()