Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show First 20 Lines • Show All 560 Lines • ▼ Show 20 Lines | |||||
) | ) | ||||
link_event(server event) | link_event(server event) | ||||
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Windows") | if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Windows") | ||||
link_event(server pthreads) | link_event(server pthreads) | ||||
endif() | endif() | ||||
if(ENABLE_UPNP) | if(ENABLE_UPNP) | ||||
find_package(MiniUPnPc 1.5 REQUIRED) | find_package(MiniUPnPc 1.9 REQUIRED) | ||||
target_link_libraries(server MiniUPnPc::miniupnpc) | target_link_libraries(server MiniUPnPc::miniupnpc) | ||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | ||||
# TODO: check if we are really using a static library. Assume this is | # TODO: check if we are really using a static library. Assume this is | ||||
# the one from the depends for now since the native windows build is not | # the one from the depends for now since the native windows build is not | ||||
# supported. | # supported. | ||||
target_compile_definitions(server | target_compile_definitions(server | ||||
PUBLIC -DSTATICLIB | PUBLIC -DSTATICLIB | ||||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |