mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
27 lines
434 B
CMake
27 lines
434 B
CMake
cmake_minimum_required(VERSION 2.6.0)
|
|
project(toxcore C)
|
|
|
|
set(core_sources
|
|
DHT.c
|
|
network.c
|
|
Lossless_UDP.c
|
|
net_crypto.c
|
|
friend_requests.c
|
|
LAN_discovery.c
|
|
Messenger.c
|
|
util.c
|
|
ping.c
|
|
tox.c)
|
|
|
|
if(SHARED_TOXCORE)
|
|
add_library(toxcore SHARED ${core_sources})
|
|
else()
|
|
add_library(toxcore ${core_sources})
|
|
endif()
|
|
|
|
target_link_libraries(toxcore ${LINK_CRYPTO_LIBRARY})
|
|
|
|
if(WIN32)
|
|
target_link_libraries(toxcore ws2_32)
|
|
endif()
|