aboutsummaryrefslogtreecommitdiffstats
path: root/tools/dissectors/epan/rfnoc/CMakeLists.txt
diff options
context:
space:
mode:
authorCristina Fuentes <cristina.fuentes-curiel@ni.com>2020-11-30 17:00:51 -0800
committermichael-west <michael.west@ettus.com>2020-12-01 10:07:47 -0800
commitb82b99cc3eed90ee19f7149eefa4f5d02d4f5a21 (patch)
tree0dd4f41faf29ea707f6bc406de96d191a75c6a1c /tools/dissectors/epan/rfnoc/CMakeLists.txt
parentf2f27fdad989e237ad15a1eb56ef4b285cfde623 (diff)
downloaduhd-b82b99cc3eed90ee19f7149eefa4f5d02d4f5a21.tar.gz
uhd-b82b99cc3eed90ee19f7149eefa4f5d02d4f5a21.tar.bz2
uhd-b82b99cc3eed90ee19f7149eefa4f5d02d4f5a21.zip
tools: Rfnoc dissectors are now built and named based on CHDR width
Diffstat (limited to 'tools/dissectors/epan/rfnoc/CMakeLists.txt')
-rw-r--r--tools/dissectors/epan/rfnoc/CMakeLists.txt14
1 files changed, 8 insertions, 6 deletions
diff --git a/tools/dissectors/epan/rfnoc/CMakeLists.txt b/tools/dissectors/epan/rfnoc/CMakeLists.txt
index 3fb266f3a..31766044b 100644
--- a/tools/dissectors/epan/rfnoc/CMakeLists.txt
+++ b/tools/dissectors/epan/rfnoc/CMakeLists.txt
@@ -1,4 +1,6 @@
-set_module_info(rfnoc 4 0 0 0)
+set(DISSECTOR_NAME "rfnoc${RFNOC_CHDR_WIDTH}")
+
+set_module_info(${DISSECTOR_NAME} 4 0 0 0)
set(DISSECTOR_SRC
${CMAKE_CURRENT_SOURCE_DIR}/packet-rfnoc.cpp
@@ -17,14 +19,14 @@ register_plugin_files(${CMAKE_CURRENT_BINARY_DIR}/plugin.c
${DISSECTOR_SRC}
)
-add_plugin_library(rfnoc epan)
+add_plugin_library(${DISSECTOR_NAME} epan)
-set_target_properties(rfnoc PROPERTIES PREFIX ""
+set_target_properties(${DISSECTOR_NAME} PROPERTIES PREFIX ""
CXX_STANDARD 14
CXX_STANDARD_REQUIRED YES
)
-set_target_properties(rfnoc PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
-target_link_libraries(rfnoc wireshark epan)
+set_target_properties(${DISSECTOR_NAME} PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
+target_link_libraries(${DISSECTOR_NAME} wireshark epan)
-install_plugin(rfnoc epan)
+install_plugin(${DISSECTOR_NAME} epan)