aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/profinet
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/profinet
parent45e462985db891248ffcb9db21e6b66733de0b84 (diff)
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/profinet')
-rw-r--r--plugins/profinet/CMakeLists.txt15
1 files changed, 12 insertions, 3 deletions
diff --git a/plugins/profinet/CMakeLists.txt b/plugins/profinet/CMakeLists.txt
index 48c2a2b7c4..48d1791424 100644
--- a/plugins/profinet/CMakeLists.txt
+++ b/plugins/profinet/CMakeLists.txt
@@ -63,9 +63,18 @@ add_library(profinet ${LINK_MODE_MODULE}
${PLUGIN_FILES}
plugin.rc
)
-set_target_properties(profinet PROPERTIES PREFIX "")
-set_target_properties(profinet PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
-set_target_properties(profinet PROPERTIES FOLDER "Plugins")
+
+set_target_properties(profinet PROPERTIES
+ PREFIX ""
+ LINK_FLAGS "${WS_LINK_FLAGS}"
+ FOLDER "Plugins"
+)
+
+if(ENABLE_APPLICATION_BUNDLE)
+ set_target_properties(profinet PROPERTIES
+ LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/run/Wireshark.app/Contents/PlugIns/wireshark
+ )
+endif()
target_link_libraries(profinet epan)