aboutsummaryrefslogtreecommitdiff
path: root/test/CMakeLists.txt
blob: 10ab323e59059b26ad2ffa4f3651d2d47a228133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
include(Catch)

add_library(CruTestBase INTERFACE)
if (EMSCRIPTEN)
	target_link_libraries(CruTestBase INTERFACE Catch2::Catch2)
else()
	target_link_libraries(CruTestBase INTERFACE Catch2::Catch2WithMain)
endif()

function(cru_catch_discover_tests target)
	if (EMSCRIPTEN)
		message("Emscripten, not do catch_discover_tests for " target)
	else()
		catch_discover_tests(target)
	endif()
endfunction()

add_subdirectory(common)
add_subdirectory(platform)
add_subdirectory(xml)
add_subdirectory(toml)
add_subdirectory(ui)