diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-09-03 12:42:10 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-09-03 12:42:10 +0800 |
commit | efa1266f10e90c0c46f47cc06645422142cb2d9f (patch) | |
tree | 3d8cfefb81ce4645d150c08fc52ad646b6da80e2 /test/base/CMakeLists.txt | |
parent | 5e59a8e38c9f8992e6ffd9dbbde11e1f873780e1 (diff) | |
download | cru-efa1266f10e90c0c46f47cc06645422142cb2d9f.tar.gz cru-efa1266f10e90c0c46f47cc06645422142cb2d9f.tar.bz2 cru-efa1266f10e90c0c46f47cc06645422142cb2d9f.zip |
common -> base in test dir.
Diffstat (limited to 'test/base/CMakeLists.txt')
-rw-r--r-- | test/base/CMakeLists.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test/base/CMakeLists.txt b/test/base/CMakeLists.txt new file mode 100644 index 00000000..683c8295 --- /dev/null +++ b/test/base/CMakeLists.txt @@ -0,0 +1,40 @@ +add_executable(CruBaseTest + Event2Test.cpp + HandlerRegistryTest.cpp + PropertyTreeTest.cpp + SelfResolvableTest.cpp + StringTest.cpp + StringToNumberConverterTest.cpp + StringUtilTest.cpp + SubProcessTest.cpp +) +target_link_libraries(CruBaseTest PRIVATE CruBase CruTestBase) + +add_executable(CruTestHelperEcho + SubProcessHelper/CruEcho.cpp +) + +add_executable(CruTestHelperTee + SubProcessHelper/CruTee.cpp +) + +target_compile_definitions(CruBaseTest PRIVATE + CRU_TEST_HELPER_ECHO_LOCATION="$<TARGET_FILE:CruTestHelperEcho>" + CRU_TEST_HELPER_TEE_LOCATION="$<TARGET_FILE:CruTestHelperTee>" +) + +if (UNIX AND NOT EMSCRIPTEN) + target_sources(CruBaseTest PRIVATE + platform/unix/UnixFileTest.cpp + platform/unix/UnixFileStreamTest.cpp + ) +endif() + +if (WIN32) + target_sources(CruBaseTest PRIVATE + platform/win/StreamConvertTest.cpp + platform/win/Win32FileStreamTest.cpp + ) +endif() + +cru_catch_discover_tests(CruBaseTest) |