blob: 38d223491a6b391e31d384440d76f17f2c2ef694 (
plain)
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
34
35
36
37
38
39
40
|
--- a/docbook/CMakeLists.txt
+++ b/docbook/CMakeLists.txt
@@ -61,21 +61,22 @@
common_graphics/warning.svg
)
-set(WSUG_TOOLS_HELP_COMMANDS
+set(WSUG_TOOLS_COMMANDS
capinfos
+ dumpcap
editcap
mergecap
+ rawshark
reordercap
text2pcap
tshark
)
-if (PCAP_FOUND)
- list(APPEND WSUG_TOOLS_HELP_COMMANDS
- dumpcap
- rawshark
- )
-endif(PCAP_FOUND)
+foreach(th_build ${WSUG_TOOLS_COMMANDS})
+if (TARGET ${th_build})
+ list(APPEND WSUG_TOOLS_HELP_COMMANDS ${th_build})
+endif(BUILD_${th_build})
+endforeach()
# We want the wsug_* targets to depend on the tools help files.
# We want update_tools_help to be an independent target.
@@ -92,6 +93,7 @@
foreach(th_command ${WSUG_TOOLS_HELP_COMMANDS})
set(th_file ${CMAKE_CURRENT_SOURCE_DIR}/wsug_src/${th_command}-h.txt)
+ add_dependencies(th_file th_command)
list(APPEND WSUG_TOOLS_HELP_FILES ${th_file})
add_custom_command(
OUTPUT ${th_file}
|