diff options
author | crupest <crupest@outlook.com> | 2021-06-09 22:31:11 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-06-09 22:31:11 +0800 |
commit | c81a4458831f66818e9118fe6e0c37f54acf22f1 (patch) | |
tree | e6cab66da28bd5733d8069573cd38fe15a67ad8e /operating-system-experiment/CMakeLists.txt | |
parent | f3bab43b55c73c58e9eaf5749d0604d813a87a78 (diff) | |
parent | 85481d521cfb996e7487a95f3727474d79e27281 (diff) | |
download | life-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.txt | 4 |
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 |