source: trunk/third-party/utp.cmake

Last change on this file was 14350, checked in by mikedld, 3 years ago

#5828: Initial CMake build system support

File size: 412 bytes
Line 
1cmake_minimum_required(VERSION 2.8)
2project(utp CXX)
3
4if(WIN32)
5    set(${PROJECT_NAME}_ADD_SOURCES
6        win32_inet_ntop.cpp
7    )
8else()
9    add_definitions(-DPOSIX)
10endif()
11
12include_directories(.)
13
14add_library(${PROJECT_NAME} STATIC
15    utp.cpp
16    utp_utils.cpp
17    ${${PROJECT_NAME}_ADD_SOURCES}
18)
19
20install(TARGETS ${PROJECT_NAME} DESTINATION lib)
21install(FILES utp.h utypes.h DESTINATION include/libutp)
Note: See TracBrowser for help on using the repository browser.