aa2776ebd4b1bdd3665d20f3f22f5cd59686fa09
[obnox/wireshark/wip.git] / plugins / giop / CMakeLists.txt
1 # CMakeLists.txt
2 #
3 # $Id$
4 #
5 # Wireshark - Network traffic analyzer
6 # By Gerald Combs <gerald@wireshark.org>
7 # Copyright 1998 Gerald Combs
8 #
9 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License
11 # as published by the Free Software Foundation; either version 2
12 # of the License, or (at your option) any later version.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22 #
23
24 set(COSNAMING_SRC
25         packet-cosnaming.c
26 )
27
28 set(COSEVENTCOMM_SRC
29         packet-coseventcomm.c
30 )
31
32 set(TANGO_SRC
33         packet-tango.c
34 )
35 set(PARLAY_SRC
36         packet-parlay.c
37 )
38
39 set(CLEAN_FILES
40         ${COSNAMING_SRC}
41         ${COSEVENTCOMM_SRC}
42         # Not clean ${TANGO_SRC}
43         # Not clean ${PARLAY_SRC}
44 )
45
46 if (WERROR)
47         set_source_files_properties(
48                 ${CLEAN_FILES}
49                 PROPERTIES
50                 COMPILE_FLAGS -Werror
51         )
52 endif()
53
54 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
55
56 # todo
57 # Do I need any of this or is this handled by type MODULE?
58 # asn1_la_LDFLAGS = -module -avoid-version
59
60 add_library(cosnaming MODULE
61         ${COSNAMING_SRC}
62 )
63
64 target_link_libraries(cosnaming epan)
65
66 install(TARGETS cosnaming
67         LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
68         RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
69         ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
70 )
71
72 add_library(coseventcomm MODULE
73         ${COSEVENTCOMM_SRC}
74 )
75
76 target_link_libraries(coseventcomm epan)
77
78 install(TARGETS coseventcomm
79         LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
80         RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
81         ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
82 )
83
84 add_library(tango MODULE
85         ${TANGO_SRC}
86 )
87
88 target_link_libraries(tango epan)
89
90 install(TARGETS tango
91         LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
92         RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
93         ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
94 )
95
96 add_library(parlay MODULE
97         ${PARLAY_SRC}
98 )
99
100 target_link_libraries(parlay epan)
101
102 install(TARGETS parlay
103         LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
104         RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
105         ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
106 )
107