-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
30 lines (24 loc) · 1.36 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cmake_minimum_required(VERSION 3.25)
project(corofork_demo LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
# While in VSCode, use recommended extentions from extensions.json,
# they add context menus and buttons into status bar.
# To provide --config ConfigurationName in VSCode's
# click "Activity Bar" on the left, then go "CMake" icon.
# See also https://github.com/microsoft/vscode-cmake-tools/blob/main/docs/debug-launch.md
message("Generated with config types: ${CMAKE_CONFIGURATION_TYPES}")
if(MSVC)
# Remember _HAS_STATIC_RTTI=0 shall also do /GR-
# The set(CMAKE_BUILD_TYPE Release) has no effect on milticonfig builds.
# uncomment below to have PDB in addition to execitable even in release
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "ProgramDatabase")
add_link_options("/DEBUG:FULL")
endif()
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
# While in VSCode click "Activity Bar" on the left, then "CMake"
# to see the list of targets and select the one to run.
# Find Build/Debug/Run buttons in the status bar below
add_executable(all_invert_function_and_callback Demo/all_invert_function_and_callback.cpp)
add_executable(go_thread_and_back Demo/go_thread_and_back.cpp)
add_executable(invert_subscription Demo/invert_subscription.cpp)
add_executable(multimpe_threads_invert_subscription Demo/multimpe_threads_invert_subscription.cpp)