2013-07-21 20:41:08 -04:00
|
|
|
cmake_minimum_required(VERSION 2.6.0)
|
2013-08-03 18:25:12 +02:00
|
|
|
project(toxcore C)
|
2013-07-21 20:41:08 -04:00
|
|
|
|
|
|
|
set(core_sources
|
2013-07-29 20:45:53 -04:00
|
|
|
DHT.c
|
|
|
|
network.c
|
|
|
|
Lossless_UDP.c
|
|
|
|
net_crypto.c
|
|
|
|
friend_requests.c
|
|
|
|
LAN_discovery.c
|
2013-08-05 12:51:58 -07:00
|
|
|
Messenger.c
|
|
|
|
util.c
|
2013-08-12 13:08:03 +01:00
|
|
|
ping.c
|
|
|
|
timer.c)
|
2013-07-21 20:41:08 -04:00
|
|
|
|
2013-08-04 21:38:12 -04:00
|
|
|
if(SHARED_TOXCORE)
|
|
|
|
add_library(toxcore SHARED ${core_sources})
|
|
|
|
else()
|
|
|
|
add_library(toxcore ${core_sources})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
target_link_libraries(toxcore ${LINK_CRYPTO_LIBRARY})
|
2013-08-04 21:20:48 -04:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
target_link_libraries(toxcore ws2_32)
|
|
|
|
endif()
|