mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
20 lines
408 B
CMake
20 lines
408 B
CMake
|
cmake_minimum_required(VERSION 2.8)
|
||
|
project(natpmp C)
|
||
|
|
||
|
add_definitions(-DNATPMP_STATICLIB -DENABLE_STRNATPMPERR)
|
||
|
|
||
|
if(WIN32)
|
||
|
set(${PROJECT_NAME}_ADD_SOURCES
|
||
|
wingettimeofday.c
|
||
|
)
|
||
|
endif()
|
||
|
|
||
|
add_library(${PROJECT_NAME} STATIC
|
||
|
getgateway.c
|
||
|
natpmp.c
|
||
|
${${PROJECT_NAME}_ADD_SOURCES}
|
||
|
)
|
||
|
|
||
|
install(TARGETS ${PROJECT_NAME} DESTINATION lib)
|
||
|
install(FILES declspec.h natpmp.h DESTINATION include)
|