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