From cf85342eec957d911829a48034d8849f2273b2a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Tue, 6 Oct 2009 18:58:09 +0000 Subject: Build plugins with cmake on OSX. svn path=/trunk/; revision=30373 --- plugins/asn1/CMakeLists.txt | 2 ++ plugins/docsis/CMakeLists.txt | 2 ++ plugins/ethercat/CMakeLists.txt | 2 ++ plugins/giop/CMakeLists.txt | 8 ++++++++ plugins/gryphon/CMakeLists.txt | 2 ++ plugins/irda/CMakeLists.txt | 2 ++ plugins/m2m/CMakeLists.txt | 7 +++++++ plugins/mate/CMakeLists.txt | 2 ++ plugins/opcua/CMakeLists.txt | 2 ++ plugins/profinet/CMakeLists.txt | 2 ++ plugins/sercosiii/CMakeLists.txt | 2 ++ plugins/stats_tree/CMakeLists.txt | 2 ++ plugins/tpg/CMakeLists.txt | 2 ++ plugins/unistim/CMakeLists.txt | 2 ++ plugins/wimax/CMakeLists.txt | 2 ++ plugins/wimaxasncp/CMakeLists.txt | 2 ++ 16 files changed, 43 insertions(+) (limited to 'plugins') diff --git a/plugins/asn1/CMakeLists.txt b/plugins/asn1/CMakeLists.txt index 1382369d0e..ef4bee9cf7 100644 --- a/plugins/asn1/CMakeLists.txt +++ b/plugins/asn1/CMakeLists.txt @@ -72,6 +72,8 @@ add_library(asn1 MODULE ${PLUGIN_FILES} ) +target_link_libraries(asn1 epan) + install(TARGETS asn1 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} diff --git a/plugins/docsis/CMakeLists.txt b/plugins/docsis/CMakeLists.txt index 436259631a..b7c9b8fd53 100644 --- a/plugins/docsis/CMakeLists.txt +++ b/plugins/docsis/CMakeLists.txt @@ -101,6 +101,8 @@ add_library(docsis MODULE ${PLUGIN_FILES} ) +target_link_libraries(docsis epan) + install(TARGETS docsis LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} diff --git a/plugins/ethercat/CMakeLists.txt b/plugins/ethercat/CMakeLists.txt index 97e5362c1f..164b34724a 100644 --- a/plugins/ethercat/CMakeLists.txt +++ b/plugins/ethercat/CMakeLists.txt @@ -73,6 +73,8 @@ add_library(ethercat MODULE ${PLUGIN_FILES} ) +target_link_libraries(ethercat epan) + install(TARGETS ethercat LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} diff --git a/plugins/giop/CMakeLists.txt b/plugins/giop/CMakeLists.txt index 591f935a6f..9a7e32e105 100644 --- a/plugins/giop/CMakeLists.txt +++ b/plugins/giop/CMakeLists.txt @@ -46,6 +46,8 @@ add_library(cosnaming MODULE ${COSNAMING_SRC} ) +target_link_libraries(cosnaming epan) + install(TARGETS cosnaming LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} @@ -56,6 +58,8 @@ add_library(coseventcomm MODULE ${COSEVENTCOMM_SRC} ) +target_link_libraries(coseventcomm epan) + install(TARGETS coseventcomm LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} @@ -66,6 +70,8 @@ add_library(tango MODULE ${TANGO_SRC} ) +target_link_libraries(tango epan) + install(TARGETS tango LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} @@ -76,6 +82,8 @@ add_library(parlay MODULE ${PARLAY_SRC} ) +target_link_libraries(parlay epan) + install(TARGETS parlay LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} diff --git a/plugins/gryphon/CMakeLists.txt b/plugins/gryphon/CMakeLists.txt index 1b716da40f..670d997e5a 100644 --- a/plugins/gryphon/CMakeLists.txt +++ b/plugins/gryphon/CMakeLists.txt @@ -67,6 +67,8 @@ add_library(gryphon MODULE ${PLUGIN_FILES} ) +target_link_libraries(gryphon epan) + install(TARGETS gryphon LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} diff --git a/plugins/irda/CMakeLists.txt b/plugins/irda/CMakeLists.txt index 983b96ecbf..1c3e1f7bf5 100644 --- a/plugins/irda/CMakeLists.txt +++ b/plugins/irda/CMakeLists.txt @@ -69,6 +69,8 @@ add_library(irda MODULE ${PLUGIN_FILES} ) +target_link_libraries(irda epan) + install(TARGETS irda LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} diff --git a/plugins/m2m/CMakeLists.txt b/plugins/m2m/CMakeLists.txt index 6d5047c1a2..57239210e0 100644 --- a/plugins/m2m/CMakeLists.txt +++ b/plugins/m2m/CMakeLists.txt @@ -25,9 +25,14 @@ set(DISSECTOR_SRC packet-m2m.c ) +set(DISSECTOR_SUPPORT_SRC + wimax_tlv.c +) + set(PLUGIN_FILES plugin.c ${DISSECTOR_SRC} + ${DISSECTOR_SUPPORT_SRC} ) include_directories(${CMAKE_CURRENT_SOURCE_DIR}) @@ -67,6 +72,8 @@ add_library(m2m MODULE ${PLUGIN_FILES} ) +target_link_libraries(m2m epan) + install(TARGETS m2m LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} diff --git a/plugins/mate/CMakeLists.txt b/plugins/mate/CMakeLists.txt index 59b3202558..51f4241b9b 100644 --- a/plugins/mate/CMakeLists.txt +++ b/plugins/mate/CMakeLists.txt @@ -86,6 +86,8 @@ add_library(mate MODULE ${PLUGIN_FILES} ) +target_link_libraries(mate epan) + install(TARGETS mate LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} diff --git a/plugins/opcua/CMakeLists.txt b/plugins/opcua/CMakeLists.txt index 5b39baa89c..10ab3acd98 100644 --- a/plugins/opcua/CMakeLists.txt +++ b/plugins/opcua/CMakeLists.txt @@ -80,6 +80,8 @@ add_library(opcua MODULE ${PLUGIN_FILES} ) +target_link_libraries(opcua epan) + install(TARGETS opcua LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} diff --git a/plugins/profinet/CMakeLists.txt b/plugins/profinet/CMakeLists.txt index 039dd59529..3a9412d670 100644 --- a/plugins/profinet/CMakeLists.txt +++ b/plugins/profinet/CMakeLists.txt @@ -79,6 +79,8 @@ add_library(profinet MODULE ${PLUGIN_FILES} ) +target_link_libraries(profinet epan) + install(TARGETS profinet LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} diff --git a/plugins/sercosiii/CMakeLists.txt b/plugins/sercosiii/CMakeLists.txt index 2bcdcbb39f..630a25d3bf 100644 --- a/plugins/sercosiii/CMakeLists.txt +++ b/plugins/sercosiii/CMakeLists.txt @@ -78,6 +78,8 @@ add_library(sercosiii MODULE ${PLUGIN_FILES} ) +target_link_libraries(sercosiii epan) + install(TARGETS sercosiii LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} diff --git a/plugins/stats_tree/CMakeLists.txt b/plugins/stats_tree/CMakeLists.txt index 23057a7ab3..c7e68610e3 100644 --- a/plugins/stats_tree/CMakeLists.txt +++ b/plugins/stats_tree/CMakeLists.txt @@ -35,6 +35,8 @@ add_library(stats_tree MODULE ${TAP_SRC} ) +target_link_libraries(stats_tree epan) + install(TARGETS stats_tree LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} diff --git a/plugins/tpg/CMakeLists.txt b/plugins/tpg/CMakeLists.txt index c6106df8eb..542a83bdc7 100644 --- a/plugins/tpg/CMakeLists.txt +++ b/plugins/tpg/CMakeLists.txt @@ -66,6 +66,8 @@ add_library(tpg MODULE ${PLUGIN_FILES} ) +target_link_libraries(tpg epan) + install(TARGETS tpg LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} diff --git a/plugins/unistim/CMakeLists.txt b/plugins/unistim/CMakeLists.txt index 0d4abf3230..445dcdc5df 100644 --- a/plugins/unistim/CMakeLists.txt +++ b/plugins/unistim/CMakeLists.txt @@ -67,6 +67,8 @@ add_library(unistim MODULE ${PLUGIN_FILES} ) +target_link_libraries(unistim epan) + install(TARGETS unistim LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} diff --git a/plugins/wimax/CMakeLists.txt b/plugins/wimax/CMakeLists.txt index 0674e90d1b..3745be5846 100644 --- a/plugins/wimax/CMakeLists.txt +++ b/plugins/wimax/CMakeLists.txt @@ -112,6 +112,8 @@ add_library(wimax MODULE ${PLUGIN_FILES} ) +target_link_libraries(wimax epan) + install(TARGETS wimax LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} diff --git a/plugins/wimaxasncp/CMakeLists.txt b/plugins/wimaxasncp/CMakeLists.txt index 69aada17f4..5d593bc31f 100644 --- a/plugins/wimaxasncp/CMakeLists.txt +++ b/plugins/wimaxasncp/CMakeLists.txt @@ -71,6 +71,8 @@ add_library(wimaxasncp MODULE ${PLUGIN_FILES} ) +target_link_libraries(wimaxasncp epan) + install(TARGETS wimaxasncp LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} -- cgit v1.2.3