-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
34 lines (23 loc) · 1006 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
29
30
31
32
33
34
cmake_minimum_required(VERSION 3.14)
project(loevent)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# set(CMAKE_BUILD_TYPE RelWithDebInfo)
include_directories(${CMAKE_CURRENT_LIST_DIR}/inc)
find_package(spdlog REQUIRED)
# add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/src/mt)
# add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/src/bench)
# aux_source_directory(src/core/ core)
# SET(LIBRARY_OUTPUT_PATH "${PROJECT_BINARY_DIR}/lib")
# SET(LOEVENT_SRC "src/tmp.cpp")
# include_directories("${PROJECT_SOURCE_DIR}/inc")
# ADD_LIBRARY(loevent STATIC ${LOEVENT_SRC})
add_executable(echo_server example/echo_server.cpp)
target_link_libraries(echo_server spdlog::spdlog)
add_executable(http_server example/http_server.cpp)
target_link_libraries(http_server spdlog::spdlog)
add_executable(bench_cli example/bench_cli.cpp)
target_link_libraries(bench_cli spdlog::spdlog)
add_executable(cmd_client example/cmd_client.cpp)
target_link_libraries(cmd_client)