From 0c012a37767960fada314965d46f519825c8c96d Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Thu, 15 Feb 2018 09:22:37 -0800 Subject: [PATCH] Fix linux build --- test/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 1058a70..bc97a00 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -2,5 +2,10 @@ add_executable(cardtest main.cpp) +set(PLAT_LIBS) +if (UNIX AND NOT APPLE) + list(APPEND PLAT_LIBS rt) +endif() + target_link_libraries(cardtest - kabufuda) + kabufuda ${PLAT_LIBS})