-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (29 loc) · 1.02 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
cmake_minimum_required(VERSION 3.17)
project(nng-playground)
#---------------------------------------------------------------------------------------
# compiler config
#---------------------------------------------------------------------------------------
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
add_compile_options("-Wall")
add_compile_options("-Wextra")
add_compile_options("-Wconversion")
add_compile_options("-pedantic")
add_compile_options("-Wfatal-errors")
endif()
# fmt library dependency
find_package(fmt CONFIG REQUIRED)
# nng library dependency
find_package(nng CONFIG REQUIRED)
# nngpp library dependency
find_package(nngpp CONFIG REQUIRED)
# spdlog library dependency
find_package(spdlog CONFIG REQUIRED)
# Threads
find_package(Threads)
add_subdirectory(pub-sub-proxy)
add_subdirectory(pub-sub)
add_subdirectory(common)
add_subdirectory(pub-sub-stack)