2019-04-07 11:08:32 +00:00
|
|
|
--- Server/CMakeLists.txt.orig 2018-03-06 18:31:59 UTC
|
2017-09-15 14:17:03 +00:00
|
|
|
+++ Server/CMakeLists.txt
|
2019-04-07 11:08:32 +00:00
|
|
|
@@ -24,6 +24,23 @@ find_path(LIBYAML_CPP_INCLUDE_DIR
|
2017-09-15 14:17:03 +00:00
|
|
|
PATH_SUFFIXES
|
|
|
|
include)
|
|
|
|
|
|
|
|
+find_path(LIBLZ4_CPP_LIBRARY_DIR
|
2019-04-07 11:08:32 +00:00
|
|
|
+ NAMES
|
|
|
|
+ liblz4.so
|
2017-09-15 14:17:03 +00:00
|
|
|
+ HINTS
|
|
|
|
+ ${HINT_ROOT_DIR}
|
|
|
|
+ PATH_SUFFIXES
|
|
|
|
+ lib)
|
2019-04-07 11:08:32 +00:00
|
|
|
+
|
|
|
|
+find_path(LIBZSTD_CPP_LIBRARY_DIR
|
|
|
|
+ NAMES
|
|
|
|
+ libzstd.so
|
|
|
|
+ HINTS
|
|
|
|
+ ${HINT_ROOT_DIR}
|
|
|
|
+ PATH_SUFFIXES
|
|
|
|
+ lib)
|
|
|
|
+
|
2017-09-15 14:17:03 +00:00
|
|
|
+
|
|
|
|
find_library(LIBYAML_CPP_LIBRARY
|
|
|
|
NAMES
|
|
|
|
libyaml-cpp.a yaml-cpp
|
2019-04-07 11:08:32 +00:00
|
|
|
@@ -84,6 +101,7 @@ endif()
|
2017-09-15 14:17:03 +00:00
|
|
|
# Update the include dir
|
|
|
|
include_directories(${LIBRDKAFKA_INCLUDE_DIR} ${LIBYAML_CPP_INCLUDE_DIR} src/ src/bmp src/bgp src/bgp/linkstate src/kafka)
|
|
|
|
#link_directories(${LIBRDKAFKA_LIBRARY})
|
2019-04-07 11:08:32 +00:00
|
|
|
+link_directories(${LIBLZ4_CPP_LIBRARY_DIR} ${LIBZSTD_CPP_LIBRARY_DIR})
|
2017-09-15 14:17:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Define the source files to compile
|
2019-04-07 11:08:32 +00:00
|
|
|
@@ -134,7 +152,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR CMA
|
2017-09-15 14:17:03 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
# Set the libs to link
|
2018-03-07 12:41:33 +00:00
|
|
|
-set (LIBS pthread ${LIBYAML_CPP_LIBRARY} ${LIBRDKAFKA_CPP_LIBRARY} ${LIBRDKAFKA_LIBRARY} z ${SSL_LIBS} dl)
|
2019-04-07 11:08:32 +00:00
|
|
|
+set (LIBS pthread ${LIBYAML_CPP_LIBRARY} ${LIBRDKAFKA_CPP_LIBRARY} ${LIBRDKAFKA_LIBRARY} z lz4 zstd ${SSL_LIBS})
|
2017-09-15 14:17:03 +00:00
|
|
|
|
|
|
|
# Set the binary
|
|
|
|
add_executable (openbmpd ${SRC_FILES})
|