Skip to content

Commit 8b543bc

Browse files
committed
CMake - introduce CMakeLists for ipfixprobe core
1 parent 628b469 commit 8b543bc

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

src/core/CMakeLists.txt

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
add_executable(ipfixprobe
2+
main.cpp
3+
ipfixprobe.cpp
4+
ipfixprobe.hpp
5+
options.cpp
6+
pluginmgr.cpp
7+
pluginmgr.hpp
8+
ring.c
9+
stacktrace.cpp
10+
stacktrace.hpp
11+
stats.cpp
12+
stats.hpp
13+
utils.cpp
14+
workers.cpp
15+
workers.hpp
16+
input.cpp
17+
)
18+
19+
20+
target_include_directories(ipfixprobe PUBLIC
21+
${CMAKE_SOURCE_DIR}/include
22+
${CMAKE_BINARY_DIR}/src
23+
)
24+
25+
target_link_options(ipfixprobe PRIVATE -Wl,--export-dynamic)
26+
27+
set_target_properties(
28+
ipfixprobe PROPERTIES
29+
CXX_VISIBILITY_PRESET hidden
30+
VISIBILITY_INLINES_HIDDEN YES
31+
)
32+
33+
target_link_libraries(ipfixprobe PRIVATE
34+
pthread
35+
telemetry::telemetry
36+
telemetry::appFs
37+
atomic::atomic
38+
unwind::unwind
39+
${CMAKE_DL_LIBS}
40+
)
41+
42+
install(TARGETS ipfixprobe DESTINATION "${INSTALL_DIR_BIN}")

0 commit comments

Comments
 (0)