summaryrefslogtreecommitdiff
path: root/plugins/stats_tree
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-10-09 16:41:37 -0700
committerGerald Combs <gerald@wireshark.org>2014-10-09 23:57:43 +0000
commitbea24cfdad15fd1842ee9cc2db56b97d74b0fafe (patch)
tree51b4fa8b2fb3504485637d8e8e1b44cc02d6032b /plugins/stats_tree
parent45e462985db891248ffcb9db21e6b66733de0b84 (diff)
downloadwireshark-bea24cfdad15fd1842ee9cc2db56b97d74b0fafe.tar.gz
CMake: Bundle our plugins.
plugins/*/CMakeLists.txt has a lot of repitition. We might want to create a module or include file to simplify things. Change-Id: Iadd453c286a4127beacd80edf6dc200aa9148852 Reviewed-on: https://code.wireshark.org/review/4582 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'plugins/stats_tree')
-rw-r--r--plugins/stats_tree/CMakeLists.txt15
1 files changed, 12 insertions, 3 deletions
diff --git a/plugins/stats_tree/CMakeLists.txt b/plugins/stats_tree/CMakeLists.txt
index e8dfdae13c..dfe20daaa2 100644
--- a/plugins/stats_tree/CMakeLists.txt
+++ b/plugins/stats_tree/CMakeLists.txt
@@ -40,9 +40,18 @@ add_library(stats_tree ${LINK_MODE_MODULE}
${TAP_SRC}
plugin.rc
)
-set_target_properties(stats_tree PROPERTIES PREFIX "")
-set_target_properties(stats_tree PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
-set_target_properties(stats_tree PROPERTIES FOLDER "Plugins")
+
+set_target_properties(stats_tree PROPERTIES
+ PREFIX ""
+ LINK_FLAGS "${WS_LINK_FLAGS}"
+ FOLDER "Plugins"
+)
+
+if(ENABLE_APPLICATION_BUNDLE)
+ set_target_properties(stats_tree PROPERTIES
+ LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/run/Wireshark.app/Contents/PlugIns/wireshark
+ )
+endif()
target_link_libraries(stats_tree epan)