2019-09-30 08:59:34 +00:00
|
|
|
# Basic definitions
|
|
|
|
set(LIB lokinet)
|
|
|
|
set(SHARED_LIB ${LIB}-shared)
|
|
|
|
set(STATIC_LIB ${LIB}-static)
|
|
|
|
set(CRYPTOGRAPHY_LIB ${LIB}-cryptography)
|
|
|
|
set(UTIL_LIB ${LIB}-util)
|
|
|
|
set(PLATFORM_LIB ${LIB}-platform)
|
|
|
|
set(ANDROID_LIB ${LIB}android)
|
|
|
|
set(ABYSS libabyss)
|
|
|
|
set(ABYSS_LIB abyss)
|
2020-03-27 15:04:13 +00:00
|
|
|
set(DOCS_SRC "")
|
2019-10-06 23:23:30 +00:00
|
|
|
get_filename_component(TT_ROOT "${CMAKE_CURRENT_LIST_DIR}/../vendor/libtuntap-master" ABSOLUTE)
|
2019-09-30 08:59:34 +00:00
|
|
|
add_definitions(-D${CMAKE_SYSTEM_NAME})
|
|
|
|
|
|
|
|
get_filename_component(CORE_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/include" ABSOLUTE)
|
|
|
|
get_filename_component(ABYSS_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/${ABYSS}/include" ABSOLUTE)
|
2019-10-06 23:23:30 +00:00
|
|
|
|
|
|
|
set(LIBTUNTAP_SRC
|
|
|
|
${TT_ROOT}/tuntap.cpp
|
|
|
|
${TT_ROOT}/tuntap_log.cpp)
|
2020-03-30 10:37:21 +00:00
|
|
|
|
|
|
|
set(LLARP_VERSION_MAJOR 0)
|
|
|
|
set(LLARP_VERSION_MINOR 7)
|
|
|
|
set(LLARP_VERSION_PATCH 0)
|
|
|
|
set(LLARP_VERSION "v${LLARP_VERSION_MAJOR}.${LLARP_VERSION_MINOR}.${LLARP_VERSION_PATCH}")
|
|
|
|
add_definitions(-DLLARP_VERSION_MAJ=${LLARP_VERSION_MAJOR})
|
|
|
|
add_definitions(-DLLARP_VERSION_MIN=${LLARP_VERSION_MINOR})
|
|
|
|
add_definitions(-DLLARP_VERSION_PATCH=${LLARP_VERSION_PATCH})
|