From bea24cfdad15fd1842ee9cc2db56b97d74b0fafe Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Thu, 9 Oct 2014 16:41:37 -0700 Subject: 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 --- plugins/stats_tree/CMakeLists.txt | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'plugins/stats_tree') 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) -- cgit v1.2.1