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 | 59be99aad9d7ad36e3edf648dbbd6b5b215c125c (patch) | |
tree | 73cf88107c915ed1657d6e2a6b9584cc48c52113 /works/life/operating-system-experiment/CMakeLists.txt | |
parent | 8268724a054a42f9446736c42d8f04a0207aa12d (diff) | |
parent | 8bdb5db67fa3eeda755511f91fd257bde548a18f (diff) | |
download | crupest-59be99aad9d7ad36e3edf648dbbd6b5b215c125c.tar.gz crupest-59be99aad9d7ad36e3edf648dbbd6b5b215c125c.tar.bz2 crupest-59be99aad9d7ad36e3edf648dbbd6b5b215c125c.zip |
import(life): Merge branch 'main' of https://github.com/crupest/life
Diffstat (limited to 'works/life/operating-system-experiment/CMakeLists.txt')
-rw-r--r-- | works/life/operating-system-experiment/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/works/life/operating-system-experiment/CMakeLists.txt b/works/life/operating-system-experiment/CMakeLists.txt index 2c46b0f..540574b 100644 --- a/works/life/operating-system-experiment/CMakeLists.txt +++ b/works/life/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 |