diff options
author | crupest <crupest@outlook.com> | 2021-06-09 21:59:17 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-06-09 21:59:17 +0800 |
commit | d42dfdf4b903763997d47b6e2214c2ce33b9bf8e (patch) | |
tree | 80d3266887b59ac8b7518c8ea3567b8ee05b26cf /works/life/operating-system-experiment/CMakeLists.txt | |
parent | 33ece81cf15b3cb8d4a005194acc67c3a3e5ad35 (diff) | |
download | crupest-d42dfdf4b903763997d47b6e2214c2ce33b9bf8e.tar.gz crupest-d42dfdf4b903763997d47b6e2214c2ce33b9bf8e.tar.bz2 crupest-d42dfdf4b903763997d47b6e2214c2ce33b9bf8e.zip |
import(life): Add operating system experiement.
Diffstat (limited to 'works/life/operating-system-experiment/CMakeLists.txt')
-rw-r--r-- | works/life/operating-system-experiment/CMakeLists.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/works/life/operating-system-experiment/CMakeLists.txt b/works/life/operating-system-experiment/CMakeLists.txt new file mode 100644 index 0000000..2c46b0f --- /dev/null +++ b/works/life/operating-system-experiment/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.20)
+
+set(CMAKE_TOOLCHAIN_FILE $ENV{VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake
+ CACHE STRING "Vcpkg toolchain file")
+
+project(operating-system-experiment)
+
+set(CMAKE_CXX_STANDARD 17)
+
+find_package(fmt CONFIG REQUIRED)
+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)
+
+add_executable(main main.cpp)
+target_link_libraries(main PRIVATE cru_system)
\ No newline at end of file |