-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
45 lines (34 loc) · 1.23 KB
/
CMakeLists.txt
File metadata and controls
45 lines (34 loc) · 1.23 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.2)
project(blyat)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_WARN_DEPRECATED FALSE) # boost::beast C++17 warnings
if(APPLE)
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64") # For new mac build universal
include_directories(/opt/local/include/) # For Macports
endif(APPLE)
add_compile_options(-Wno-deprecated)
find_package(Boost REQUIRED)
set(BLYAT_DEPS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rd_party)
add_subdirectory(${BLYAT_DEPS_DIR}/spdlog)
add_subdirectory(${BLYAT_DEPS_DIR}/entt)
add_compile_definitions(TOML_EXCEPTIONS=0)
add_subdirectory(${BLYAT_DEPS_DIR}/tomlplusplus)
set(BLYAT_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
set(BLYAT_INC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
set(BLYAT_SRCS
${BLYAT_SRC_DIR}/core/exception.cc
${BLYAT_SRC_DIR}/tag.cc
${BLYAT_SRC_DIR}/mock.cc
${BLYAT_SRC_DIR}/uuid.cc
${BLYAT_SRC_DIR}/message.cc
${BLYAT_SRC_DIR}/socket.cc
${BLYAT_SRC_DIR}/session.cc
${BLYAT_SRC_DIR}/room.cc
${BLYAT_SRC_DIR}/server.cc
${BLYAT_SRC_DIR}/config.cc
${BLYAT_SRC_DIR}/main.cc)
add_executable(blyat ${BLYAT_SRCS})
target_include_directories(blyat PUBLIC ${BLYAT_INC_DIR})
target_link_libraries(blyat PRIVATE spdlog::spdlog_header_only
PRIVATE EnTT
PRIVATE tomlplusplus::tomlplusplus)