-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
28 lines (19 loc) · 855 Bytes
/
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
cmake_minimum_required(VERSION 3.27.7)
project(mc-server)
include(FetchContent)
FetchContent_Declare(ZStrGitRepo
GIT_REPOSITORY "https://github.com/mateidavid/zstr" # can also be a local filesystem path!
GIT_TAG "master"
)
FetchContent_MakeAvailable(ZStrGitRepo)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/out/$<CONFIG>/)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/out/$<CONFIG>/)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_subdirectory(dependencies/SFW)
add_subdirectory(dependencies/nlohmann-json)
add_subdirectory(src)
target_include_directories(${PROJECT_NAME}
PRIVATE include/
PRIVATE dependencies/nlohmann-json/single_include)
target_link_libraries(${PROJECT_NAME} PRIVATE SFW::SFW PRIVATE zstr::zstr)
set_property(TARGET SFW PROPERTY CXX_STANDARD 20)