toxcore/core/CMakeLists.txt

21 lines
404 B
CMake
Raw Normal View History

2013-07-22 08:41:08 +08:00
cmake_minimum_required(VERSION 2.6.0)
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
add_library(toxcore SHARED ${core_sources})
target_link_libraries(toxcore ${SODIUM_LIBRARY})