-
Notifications
You must be signed in to change notification settings - Fork 31
/
CMakeLists.txt
36 lines (31 loc) · 979 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
add_definitions(
-D_GNU_SOURCE
)
set(LIB_INCLUDES
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/include/lib
${CMAKE_CURRENT_SOURCE_DIR}/../include
${CMAKE_CURRENT_SOURCE_DIR}/../include/lib
)
include_directories(
${LIB_INCLUDES}
)
set(LIB_SOURCES
src/lib/lob.c
src/lib/hashname.c
src/lib/xht.c
src/lib/js0n.c
src/lib/base32.c
src/lib/chacha.c
src/lib/murmur.c
src/lib/jwt.c
src/lib/base64.c
src/lib/aes128.c
src/lib/sha256.c
src/lib/uECC.c)
set(E3X_SOURCES src/e3x/e3x.c src/e3x/self.c src/e3x/exchange.c src/e3x/cipher.c)
set(MESH_SOURCES src/mesh.c src/link.c src/chan.c)
set(UTIL_SOURCES src/util/util.c src/util/chunks.c src/util/frames.c src/unix/util.c src/unix/util_sys.c)
add_library(telehash ${LIB_SOURCES} ${E3X_SOURCES} ${MESH_SOURCES} ${UTIL_SOURCES})
add_library(telehash_bl ${LIB_SOURCES} ${E3X_SOURCES} ${MESH_SOURCES} ${UTIL_SOURCES})
target_compile_definitions(telehash_bl PUBLIC NOLOG=true)