From 3fe1ea40a4612736899840af6dde4182a3b4ff51 Mon Sep 17 00:00:00 2001 From: buck-yeh Date: Sat, 2 Oct 2021 13:49:27 +0800 Subject: [PATCH] Update aur_poc --- test/archlinux/aur_poc/CMakeLists.txt | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/test/archlinux/aur_poc/CMakeLists.txt b/test/archlinux/aur_poc/CMakeLists.txt index fe134c0..1924106 100644 --- a/test/archlinux/aur_poc/CMakeLists.txt +++ b/test/archlinux/aur_poc/CMakeLists.txt @@ -100,6 +100,28 @@ catch_discover_tests(test_PO) add_test(NAME test_PO_All COMMAND test_PO) add_executable(test_atomix test_atomix.cpp) -target_link_libraries(test_atomix PRIVATE bux stdc++ m) -catch_discover_tests(test_atomix) +target_include_directories(test_atomix PRIVATE ../include) +if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") +target_link_libraries(test_atomix PRIVATE bux fmt::fmt) +else() +target_link_libraries(test_atomix PRIVATE bux fmt stdc++ m) +endif() +add_test(NAME test_atomix_All COMMAND test_atomix) + +add_executable(test_logger test_logger.cpp) +target_include_directories(test_logger PRIVATE ../include) +if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") +target_link_libraries(test_logger PRIVATE bux fmt::fmt) +else() +target_link_libraries(test_logger PRIVATE bux fmt stdc++ pthread) +endif() +add_test(NAME test_logger_All COMMAND test_logger) +add_executable(test_paralog test_paralog.cpp) +target_include_directories(test_paralog PRIVATE ../include) +if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") +target_link_libraries(test_paralog PRIVATE bux fmt::fmt) +else() +target_link_libraries(test_paralog PRIVATE bux fmt stdc++ pthread) +endif() +add_test(NAME test_paralog_All COMMAND test_paralog)