Browse Source

Windows cmake fix

Fixes #248
pull/250/head
emanuele-f 4 years ago
parent
commit
3d9d3a13f7
  1. 16
      CMakeLists.txt

16
CMakeLists.txt

@ -92,13 +92,15 @@ target_link_libraries(example_edge_embed n2n)
add_executable(example_sn_embed example_sn_embed.c)
target_link_libraries(example_sn_embed n2n)
# Linux Capabilities
find_library(CAP_LIB cap)
if(CAP_LIB)
target_link_libraries(edge cap)
set(CMAKE_REQUIRED_LIBRARIES ${CAP_LIB})
ADD_DEFINITIONS("-DHAVE_LIBCAP")
endif()
if(NOT DEFINED WIN32)
# Linux Capabilities
find_library(CAP_LIB cap)
if(CAP_LIB)
target_link_libraries(edge cap)
set(CMAKE_REQUIRED_LIBRARIES ${CAP_LIB})
ADD_DEFINITIONS("-DHAVE_LIBCAP")
endif()
endif(NOT DEFINED WIN32)
install(TARGETS edge supernode
RUNTIME DESTINATION sbin

Loading…
Cancel
Save