mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.1 KiB
CMake
54 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 2.8.10)
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11 -Wall -fPIC")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -Wall -fPIC")
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
|
|
|
|
find_package(sodium)
|
|
|
|
set(EXE llarpd)
|
|
set(EXE_SRC daemon/main.c)
|
|
|
|
set(LIBS ${sodium_LIBRARY_RELEASE} pthread stdc++fs jemalloc)
|
|
|
|
set(LIB llarp)
|
|
|
|
set(LIB_SRC
|
|
llarp/address_info.c
|
|
llarp/buffer.cpp
|
|
llarp/config.cpp
|
|
llarp/crypto_async.c
|
|
llarp/crypto_libsodium.cpp
|
|
llarp/dtls_link.cpp
|
|
llarp/ev.cpp
|
|
llarp/exit_info.c
|
|
llarp/exit_route.c
|
|
llarp/iwp_link.c
|
|
llarp/link.c
|
|
llarp/link_intro.cpp
|
|
llarp/link_relay_down.cpp
|
|
llarp/link_relay_up.cpp
|
|
llarp/logic.c
|
|
llarp/mem.cpp
|
|
llarp/mem_jemalloc.cpp
|
|
llarp/mem_std.cpp
|
|
llarp/muxer.cpp
|
|
llarp/net.cpp
|
|
llarp/nodedb.cpp
|
|
llarp/router_contact.c
|
|
llarp/router.cpp
|
|
llarp/router_identity.c
|
|
llarp/threadpool.cpp
|
|
llarp/time.cpp
|
|
llarp/timer.cpp
|
|
)
|
|
|
|
include_directories(include)
|
|
include_directories(${sodium_INCLUDE_DIR})
|
|
|
|
|
|
add_library(${LIB} STATIC ${LIB_SRC})
|
|
add_executable(${EXE} ${EXE_SRC})
|
|
target_link_libraries(${EXE} ${LIB} ${LIBS})
|