forked from CESNET/ipfixcol2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
33 lines (29 loc) · 755 Bytes
/
CMakeLists.txt
File metadata and controls
33 lines (29 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Create a linkable module
add_library(fds-input MODULE
Builder.cpp
Builder.hpp
config.c
config.h
Exception.hpp
fds.cpp
Reader.cpp
Reader.hpp
)
install(
TARGETS fds-input
LIBRARY DESTINATION "${INSTALL_DIR_LIB}/ipfixcol2/"
)
if (ENABLE_DOC_MANPAGE)
# Build a manual page
set(SRC_FILE "${CMAKE_CURRENT_SOURCE_DIR}/doc/ipfixcol2-fds-input.7.rst")
set(DST_FILE "${CMAKE_CURRENT_BINARY_DIR}/ipfixcol2-fds-input.7")
add_custom_command(TARGET fds-input PRE_BUILD
COMMAND ${RST2MAN_EXECUTABLE} --syntax-highlight=none ${SRC_FILE} ${DST_FILE}
DEPENDS ${SRC_FILE}
VERBATIM
)
install(
FILES "${DST_FILE}"
DESTINATION "${INSTALL_DIR_MAN}/man7"
)
endif()