stuff-from-scratch/test/CMakeLists.txt
2022-11-30 18:28:50 +00:00

27 lines
631 B
CMake

add_subdirectory(test_utils)
set(TEST_MODULES
audio
compiler
compression
core
database
fonts
graphics
image
ipc
network
publishing
video
web
windows)
foreach(module ${TEST_MODULES})
add_subdirectory(${module})
string(TOUPPER ${module} MODULE_UPPER)
list(APPEND UNIT_TEST_FILES ${${MODULE_UPPER}_UNIT_TEST_FILES})
list(APPEND UNIT_TEST_DEPENDENCIES ${${MODULE_UPPER}_UNIT_TEST_DEPENDENCIES})
endforeach()
add_executable(unit_tests test_runner.cpp ${UNIT_TEST_FILES})
target_link_libraries(unit_tests PUBLIC test_utils ${UNIT_TEST_DEPENDENCIES})