-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (29 loc) · 856 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
35
36
cmake_minimum_required(VERSION 3.14)
project(uvw_net LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
# add dependencies
include(cmake/CPM.cmake)
set(BUILD_UVW_LIBS ON)
CPMAddPackage(gh:skypjack/[email protected]_libuv_v1.47)
CPMAddPackage(gh:Neargye/[email protected])
set(BUILD_SHARED_LIBS OFF CACHE INTERNAL "")
set(BUILD_STATIC_LIBS ON CACHE INTERNAL "")
CPMAddPackage(
NAME llhttp
URL https://github.com/nodejs/llhttp/archive/refs/tags/release/v9.2.0.tar.gz
)
add_subdirectory(src/uvw_net/common)
add_subdirectory(src/uvw_net/dns_sd)
add_subdirectory(src/uvw_net/http)
add_subdirectory(src/uvw_net/modbus)
add_subdirectory(src/uvw_net/sunspec)
# Tests
option(BUILD_TESTING "Build test programs" OFF)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
# Tools
option(BUILD_TOOLS "Build tool programs" OFF)
if(BUILD_TOOLS)
add_subdirectory(tools)
endif()