summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
blob: cb0db6d0148655eaa320eaefb887702614f2e586 (plain)
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
37
38
39
40
41
42
include_directories(
	../include
)

add_library(erebos
	attach.cpp
	channel.cpp
	contact.cpp
	frp.cpp
	identity.cpp
	merge.cpp
	message.cpp
	network.cpp
	pairing.cpp
	pubkey.cpp
	service.cpp
	set.cpp
	state.cpp
	storage.cpp
	sync.cpp
	time.cpp
	uuid.cpp
)

add_executable(erebos-bin
	main.cpp
)

set_target_properties(erebos-bin
	PROPERTIES OUTPUT_NAME erebos
)

if (NOT CMAKE_SYSTEM_NAME STREQUAL "Android")
	target_link_libraries(erebos-bin
		erebos
		stdc++fs
		Threads::Threads
		${ZLIB_LIBRARIES}
		${OPENSSL_LIBRARIES}
		${B2_LIBRARY}
		)
endif()