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.
91 set_source_files_properties(
98 add_lex_files(WIRETAP_FILES
103 add_yacc_files(WIRETAP_FILES
109 ${GMODULE2_LIBRARIES}
114 add_library(wiretap ${LINK_MODE_LIB}
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")
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