summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-12-24 17:14:40 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-12-24 17:14:40 +0100
commiteaac49427339a365aac2d3505f567572cfbdbb96 (patch)
treeb7a8d43aa24396d513747a9eb45d9e0fd29ce232 /src
parentcd8ab035e605c5d8f8105861b2818a54a21eb311 (diff)
downloadfastd-eaac49427339a365aac2d3505f567572cfbdbb96.tar
fastd-eaac49427339a365aac2d3505f567572cfbdbb96.zip
Add WITH_CAPABILITIES CMake flag and check for libcap
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 32ce8c3..0fb0ebd 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -8,7 +8,7 @@ if(WITH_METHOD_AES128_GCM)
list(APPEND METHODS method_aes128_gcm.c)
endif(WITH_METHOD_AES128_GCM)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${FASTD_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${UECC_INCLUDE_DIRS} ${NACL_INCLUDE_DIR})
+include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${FASTD_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CAP_INCLUDE_DIR} ${UECC_INCLUDE_DIRS} ${NACL_INCLUDE_DIR})
link_directories(${UECC_LIBRARY_DIRS})
FLEX_TARGET(fastd_config_lex config.l ${CMAKE_CURRENT_BINARY_DIR}/config.ll.c)
@@ -32,6 +32,6 @@ add_executable(fastd
${METHODS}
)
set_target_properties(fastd PROPERTIES COMPILE_FLAGS -pthread ${UECC_CFLAGS_OTHER} LINK_FLAGS -pthread ${UECC_LDFLAGS_OTHER})
-target_link_libraries(fastd rt ${UECC_LIBRARIES} ${NACL_LIBRARY})
+target_link_libraries(fastd rt ${CAP_LIBRARY} ${UECC_LIBRARIES} ${NACL_LIBRARY})
install(TARGETS fastd RUNTIME DESTINATION bin)