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
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
include_directories(${CMAKE_HOME_DIRECTORY}/sodium/include/)
|
2013-07-31 02:41:51 +08:00
|
|
|
else(WIN32)
|
|
|
|
include_directories(${SODIUM_INCLUDE_DIR})
|
2013-07-22 08:41:08 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
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-04 00:25:12 +08:00
|
|
|
add_library(toxcore SHARED ${core_sources})
|
2013-08-04 05:46:52 +08:00
|
|
|
target_link_libraries(toxcore ${SODIUM_LIBRARY})
|