lokinet/CMakeLists.txt

54 lines
1.2 KiB
CMake
Raw Normal View History

2018-05-16 13:56:51 +00:00
cmake_minimum_required(VERSION 2.8.10)
set(DEBUG_FLAGS "-O1 -g -fsanitize=address -fno-omit-frame-pointer")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11 -Wall -fPIC ${DEBUG_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -Wall -fPIC ${DEBUG_FLAGS}")
2018-05-16 13:56:51 +00:00
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
set(EXE llarpd)
2018-05-20 16:15:16 +00:00
set(EXE_SRC daemon/main.cpp)
2018-05-16 13:56:51 +00:00
set(LIBS sodium pthread stdc++fs)
2018-05-16 13:56:51 +00:00
set(LIB llarp)
set(LIB_SRC
llarp/address_info.cpp
2018-05-16 13:56:51 +00:00
llarp/buffer.cpp
llarp/config.cpp
llarp/crypto_async.cpp
2018-05-16 13:56:51 +00:00
llarp/crypto_libsodium.cpp
llarp/ev.cpp
llarp/exit_info.c
llarp/exit_route.c
2018-05-18 14:40:06 +00:00
llarp/iwp_link.cpp
2018-05-16 15:49:16 +00:00
llarp/link.c
2018-05-16 13:56:51 +00:00
llarp/link_intro.cpp
llarp/link_message.cpp
2018-05-16 13:56:51 +00:00
llarp/logic.c
llarp/mem.cpp
llarp/mem_std.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})
2018-05-21 12:51:38 +00:00
add_executable(rcutil daemon/rcutil.cpp)
target_link_libraries(rcutil ${LIB} ${LIBS})