forked from netcan/asyncio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (40 loc) · 1.54 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.18)
project(asyncio)
set(CMAKE_CXX_STANDARD 20)
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
set (CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
message(CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE})
###############################################################################
set(ASYNCIO_INC
include/asyncio/asyncio_ns.h
include/asyncio/task.h
include/asyncio/event_loop.h
include/asyncio/runner.h
include/asyncio/handle.h
include/asyncio/concept/future.h
include/asyncio/noncopyable.h
include/asyncio/selector/epoll_selector.h
include/asyncio/selector/kqueue_selector.h
include/asyncio/selector/event.h
include/asyncio/selector/selector.h
include/asyncio/void_value.h
include/asyncio/exception.h
include/asyncio/wait_for.h
include/asyncio/sleep.h
include/asyncio/schedule_task.h
include/asyncio/concept/awaitable.h
include/asyncio/gather.h
include/asyncio/result.h
include/asyncio/callstack.h
include/asyncio/open_connection.h
include/asyncio/stream.h
include/asyncio/start_server.h
include/asyncio/addrinfo_guard.h
)
include_directories(${CMAKE_SOURCE_DIR}/include)
add_library(asyncio STATIC
${ASYNC_INC}
src/event_loop.cpp)
target_link_libraries(asyncio PUBLIC fmt::fmt)
add_subdirectory(test)
add_subdirectory(third_party)