forked from saucer/saucer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
22 lines (17 loc) · 955 Bytes
/
CMakeLists.txt
File metadata and controls
22 lines (17 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cmake_minimum_required(VERSION 3.25)
project(loop_example LANGUAGES CXX VERSION 1.0)
# --------------------------------------------------------------------------------------------------------
# Create executable
# --------------------------------------------------------------------------------------------------------
add_executable(${PROJECT_NAME} "main.cpp")
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_23)
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 23 CXX_EXTENSIONS OFF CXX_STANDARD_REQUIRED ON)
# --------------------------------------------------------------------------------------------------------
# Link libraries
# --------------------------------------------------------------------------------------------------------
CPMFindPackage(
NAME saucer-loop
VERSION 2.1.0
GIT_REPOSITORY "https://github.com/saucer/loop"
)
target_link_libraries(${PROJECT_NAME} PRIVATE saucer saucer::loop)