1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00
transmission/third-party/utp.cmake

22 lines
412 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 2.8)
project(utp CXX)
if(WIN32)
set(${PROJECT_NAME}_ADD_SOURCES
win32_inet_ntop.cpp
)
else()
add_definitions(-DPOSIX)
endif()
include_directories(.)
add_library(${PROJECT_NAME} STATIC
utp.cpp
utp_utils.cpp
${${PROJECT_NAME}_ADD_SOURCES}
)
install(TARGETS ${PROJECT_NAME} DESTINATION lib)
install(FILES utp.h utypes.h DESTINATION include/libutp)