1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +00:00
transmission/third-party/natpmp.cmake

20 lines
408 B
CMake
Raw Normal View History

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)