HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / wiretap / CMakeLists.txt
blob607567de4e649f5f427fe499c52e4b451d005710
1 # CMakeLists.txt
3 # $Id$
5 # Wireshark - Network traffic analyzer
6 # By Gerald Combs <gerald@wireshark.org>
7 # Copyright 1998 Gerald Combs
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.
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 include(UseABICheck)
26 set(CLEAN_FILES
27         5views.c
28         aethra.c
29         ascendtext.c
30         atm.c
31         ber.c
32         btsnoop.c
33         buffer.c
34         camins.c
35         catapult_dct2000.c
36         commview.c
37         cosine.c
38         csids.c
39         daintree-sna.c
40         dbs-etherwatch.c
41         dct3trace.c
42         erf.c
43         eyesdn.c
44         file_access.c
45         file_wrappers.c
46         hcidump.c
47         i4btrace.c
48         ipfix.c
49         iptrace.c
50         iseries.c
51         k12.c
52         lanalyzer.c
53         libpcap.c
54         merge.c
55         mpeg.c
56         mime_file.c
57         mp2t.c
58         netmon.c
59         netscaler.c
60         netscreen.c
61         nettl.c
62         network_instruments.c
63         netxray.c
64         ngsniffer.c
65         packetlogger.c
66         pcap-common.c
67         pcapng.c
68         peekclassic.c
69         peektagged.c
70         pppdump.c
71         radcom.c
72         snoop.c
73         stanag4607.c
74         tnef.c
75         toshiba.c
76         visual.c
77         vms.c
78         vwr.c
79         wtap.c
82 set(DIRTY_FILES
85 set(WIRETAP_FILES
86         ${CLEAN_FILES}
87         ${DIRTY_FILES}
90 if (WERROR)
91         set_source_files_properties(
92                 ${CLEAN_FILES}
93                 PROPERTIES
94                 COMPILE_FLAGS -Werror
95         )
96 endif()
98 add_lex_files(WIRETAP_FILES
99         ascend_scanner.l
100         k12text.l
103 add_yacc_files(WIRETAP_FILES
104         ascend.y
107 set(wiretap_LIBS
108         ${GLIB2_LIBRARIES}
109         ${GMODULE2_LIBRARIES}
110         ${ZLIB_LIBRARIES}
111         wsutil
114 add_library(wiretap ${LINK_MODE_LIB}
115         ${WIRETAP_FILES}
118 set(FULL_SO_VERSION "0.0.0")
120 set_target_properties(wiretap PROPERTIES COMPILE_DEFINITIONS "WS_BUILD_DLL")
121 set_target_properties(wiretap PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
122 set_target_properties(wiretap PROPERTIES VERSION ${FULL_SO_VERSION} SOVERSION 0)
123 set_target_properties(wiretap PROPERTIES FOLDER "DLLs")
125 ABICHECK(libwiretap)
127 add_custom_command(OUTPUT libwiretap.abi.tar.gz
128         COMMAND cp ../config.h ${ABICHECK_TMPDIR}/
129         COMMAND ${ABICHECK_COMMAND}
130         COMMAND cp ${CMAKE_CURRENT_BINARY_DIR}/abi_dumps/libwiretap/libwiretap_* ${CMAKE_CURRENT_BINARY_DIR}/libwiretap.abi.tar.gz
131         COMMAND rm -rf ${ABICHECK_TMPDIR}/* ${CMAKE_CURRENT_BINARY_DIR}/abi_dumps
132         DEPENDS ${HEADERS} wiretap)
134 target_link_libraries(wiretap ${wiretap_LIBS})
136 if(NOT ${ENABLE_STATIC})
137         install(TARGETS wiretap
138                 LIBRARY DESTINATION lib
139                 RUNTIME DESTINATION lib
140                 ARCHIVE DESTINATION lib
141         )
142 endif()