Files
FESADev/tests/unit/CMakeLists.txt
T
2026-06-12 02:25:07 +09:00

9 lines
392 B
CMake

file(GLOB FESA_UNIT_TEST_SOURCES CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/*_test.cpp")
foreach(test_source IN LISTS FESA_UNIT_TEST_SOURCES)
get_filename_component(test_name "${test_source}" NAME_WE)
add_executable("${test_name}" "${test_source}")
target_link_libraries("${test_name}" PRIVATE fesa_core)
add_test(NAME "${test_name}" COMMAND "${test_name}")
endforeach()