summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-12-23 21:11:51 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-12-23 21:11:51 +0100
commit3c19fd226e3d519be0fe11e451f36940b743c6f7 (patch)
tree4ae25508a86af12a86027487840ca1aed8c804c9 /src
parent577a9c0ed6c28f3e5d1d8c2f8174129a7e80f8ad (diff)
downloadfastd-3c19fd226e3d519be0fe11e451f36940b743c6f7.tar
fastd-3c19fd226e3d519be0fe11e451f36940b743c6f7.zip
Use new pkg-config support of libuecc
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 7bacad5..32ce8c3 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -8,7 +8,8 @@ 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_DIR} ${NACL_INCLUDE_DIR})
+include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${FASTD_BINARY_DIR} ${CMAKE_CURRENT_BINARY_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)
BISON_TARGET(fastd_config_parse config.y ${CMAKE_CURRENT_BINARY_DIR}/config.yy.c)
@@ -30,7 +31,7 @@ add_executable(fastd
${BISON_fastd_config_parse_OUTPUTS}
${METHODS}
)
-set_target_properties(fastd PROPERTIES COMPILE_FLAGS -pthread LINK_FLAGS -pthread)
-target_link_libraries(fastd rt ${UECC_LIBRARY} ${NACL_LIBRARY})
+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})
install(TARGETS fastd RUNTIME DESTINATION bin)