aboutsummaryrefslogtreecommitdiff
path: root/operating-system-experiment/CMakeLists.txt
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-09 22:31:11 +0800
committercrupest <crupest@outlook.com>2021-06-09 22:31:11 +0800
commitc81a4458831f66818e9118fe6e0c37f54acf22f1 (patch)
treee6cab66da28bd5733d8069573cd38fe15a67ad8e /operating-system-experiment/CMakeLists.txt
parentf3bab43b55c73c58e9eaf5749d0604d813a87a78 (diff)
parent85481d521cfb996e7487a95f3727474d79e27281 (diff)
downloadlife-c81a4458831f66818e9118fe6e0c37f54acf22f1.tar.gz
life-c81a4458831f66818e9118fe6e0c37f54acf22f1.tar.bz2
life-c81a4458831f66818e9118fe6e0c37f54acf22f1.zip
Merge branch 'main' of https://github.com/crupest/life
Diffstat (limited to 'operating-system-experiment/CMakeLists.txt')
-rw-r--r--operating-system-experiment/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/operating-system-experiment/CMakeLists.txt b/operating-system-experiment/CMakeLists.txt
index 2c46b0f..540574b 100644
--- a/operating-system-experiment/CMakeLists.txt
+++ b/operating-system-experiment/CMakeLists.txt
@@ -12,6 +12,10 @@ find_package(Microsoft.GSL CONFIG REQUIRED)
add_library(cru_system SHARED Thread.cpp)
target_link_libraries(cru_system PUBLIC Microsoft.GSL::GSL fmt::fmt)
target_compile_definitions(cru_system PUBLIC CRU_EXPORT_API)
+if(UNIX)
+target_link_libraries(cru_system PUBLIC pthread)
+endif()
+
add_executable(main main.cpp)
target_link_libraries(main PRIVATE cru_system) \ No newline at end of file