2013-07-22 08:41:08 +08:00
|
|
|
cmake_minimum_required(VERSION 2.6.0)
|
2013-08-04 00:25:12 +08:00
|
|
|
project(toxcore C)
|
2013-07-22 08:41:08 +08:00
|
|
|
|
|
|
|
set(core_sources
|
2013-07-30 08:45:53 +08:00
|
|
|
DHT.c
|
|
|
|
network.c
|
|
|
|
Lossless_UDP.c
|
|
|
|
net_crypto.c
|
|
|
|
friend_requests.c
|
|
|
|
LAN_discovery.c
|
|
|
|
Messenger.c)
|
2013-07-22 08:41:08 +08:00
|
|
|
|
2013-08-05 09:38:12 +08: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-05 09:20:48 +08:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
target_link_libraries(toxcore ws2_32)
|
|
|
|
endif()
|