aboutsummaryrefslogtreecommitdiff
path: root/test/common/CMakeLists.txt
blob: f0406db8e1d903f14b539d19236d0ed2ebb2eeca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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()

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
  )

gtest_discover_tests(cru_base_test)