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.
27 set(WSUTIL_PLATFORM_FILES
68 ${WSUTIL_PLATFORM_FILES}
75 ${WIN_WSOCK32_LIBRARY}
78 set(wsutil_LIBS ${wsutil_LIBS} "ws2_32.lib")
86 set_source_files_properties(
93 add_library(wsutil ${LINK_MODE_LIB}
97 set(FULL_SO_VERSION "0.0.0")
99 set_target_properties(wsutil PROPERTIES COMPILE_DEFINITIONS "WS_BUILD_DLL")
100 set_target_properties(wsutil PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
101 set_target_properties(wsutil PROPERTIES VERSION ${FULL_SO_VERSION} SOVERSION 0)
102 set_target_properties(wsutil PROPERTIES FOLDER "DLLs")
106 add_custom_command(OUTPUT libwsutil.abi.tar.gz
107 COMMAND cp ../config.h ${ABICHECK_TMPDIR}/
108 COMMAND ${ABICHECK_COMMAND}
109 COMMAND cp ${CMAKE_CURRENT_BINARY_DIR}/abi_dumps/libwsutil/libwsutil_* ${CMAKE_CURRENT_BINARY_DIR}/libwsutil.abi.tar.gz
110 COMMAND rm -rf ${ABICHECK_TMPDIR}/* ${CMAKE_CURRENT_BINARY_DIR}/abi_dumps
111 DEPENDS ${HEADERS} wsutil)
113 target_link_libraries(wsutil ${wsutil_LIBS})
115 if(NOT ${ENABLE_STATIC})
116 install(TARGETS wsutil
117 LIBRARY DESTINATION lib
118 RUNTIME DESTINATION lib
119 ARCHIVE DESTINATION lib