aboutsummaryrefslogtreecommitdiff
path: root/test/common/CMakeLists.txt
blob: 38c150009a27a7aae172bfb46f98dd4afbfccc25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
add_executable(cru_base_test
	HandlerRegistryTest.cpp
	PropertyTreeTest.cpp
	StringTest.cpp
	StringUtilTest.cpp
)
target_link_libraries(cru_base_test PRIVATE cru_base cru_test_base)

if (UNIX)
	target_sources(cru_base_test PRIVATE
		io/UnixFileStreamTest.cpp
	)
endif()

if (WIN32)
	target_sources(cru_base_test PRIVATE
		io/Win32FileStreamTest.cpp
	)

	add_custom_command(TARGET cru_base_test POST_BUILD
	COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_RUNTIME_DLLS:cru_base_test> $<TARGET_FILE_DIR:cru_base_test>
	COMMAND_EXPAND_LISTS
	)
endif()

gtest_discover_tests(cru_base_test)