blob: 17cfa85b0d83aee7d84dcd032fc56e968082a46d (
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
27
28
|
add_executable(CruBaseTest
HandlerRegistryTest.cpp
PropertyTreeTest.cpp
StringTest.cpp
StringToNumberConverterTest.cpp
StringUtilTest.cpp
)
target_link_libraries(CruBaseTest PRIVATE CruBase cru_test_base)
if (UNIX)
target_sources(CruBaseTest PRIVATE
platform/unix/UnixFileStreamTest.cpp
)
endif()
if (WIN32)
target_sources(CruBaseTest PRIVATE
platform/win/StreamConvertTest.cpp
platform/win/Win32FileStreamTest.cpp
)
add_custom_command(TARGET CruBaseTest POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_RUNTIME_DLLS:CruBaseTest> $<TARGET_FILE_DIR:CruBaseTest>
COMMAND_EXPAND_LISTS
)
endif()
catch_discover_tests(CruBaseTest)
|