diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-01-12 14:44:42 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-01-13 19:25:10 +0000 |
commit | a988253fef15e6a0ddd05b0fb06e18ccde00082b (patch) | |
tree | 8f702426b7d49b13bb388b14869b36b96bf6a020 /cmake/modules/FindGEOIP.cmake | |
parent | 42e40404294837b60af756dfbe0e6bb55cebaa21 (diff) | |
download | wireshark-a988253fef15e6a0ddd05b0fb06e18ccde00082b.tar.gz |
CMake: Copy libwireshark dependent DLLs to the target directory.
Add a "copy_cli_dlls" target which copies the DLLs required to run our
command line programs to the run directory.
Fix the spelling of "KERBEROS". Start filling in variables so that we
can populate config.nsh.
Change-Id: I9b3ed912dfbffecbf09f2893efa2c9d82e709521
Reviewed-on: https://code.wireshark.org/review/6513
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'cmake/modules/FindGEOIP.cmake')
-rw-r--r-- | cmake/modules/FindGEOIP.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cmake/modules/FindGEOIP.cmake b/cmake/modules/FindGEOIP.cmake index add3187eca..ce968b70ef 100644 --- a/cmake/modules/FindGEOIP.cmake +++ b/cmake/modules/FindGEOIP.cmake @@ -5,6 +5,8 @@ # GEOIP_INCLUDE_DIRS - where to find GeoIP.h, etc. # GEOIP_LIBRARIES - List of libraries when using GeoIP. # GEOIP_FOUND - True if GeoIP found. +# GEOIP_DLL_DIR - (Windows) Path to the GeoIP DLL. +# GEOIP_DLL - (Windows) Name of the GeoIP DLL. IF (GEOIP_INCLUDE_DIRS) @@ -45,9 +47,24 @@ IF(GEOIP_FOUND) CHECK_FUNCTION_EXISTS("GeoIP_country_name_by_ipnum_v6" HAVE_GEOIP_V6) SET(CMAKE_REQUIRED_INCLUDES "") SET(CMAKE_REQUIRED_LIBRARIES "") + if (WIN32) + set ( GEOIP_DLL_DIR "${GEOIP_HINTS}/bin" + CACHE PATH "Path to the GeoIP DLL" + ) + file( GLOB _geoip_dll RELATIVE "${GEOIP_DLL_DIR}" + "${GEOIP_DLL_DIR}/libGeoIP-*.dll" + ) + set ( GEOIP_DLL ${_geoip_dll} + # We're storing filenames only. Should we use STRING instead? + CACHE FILEPATH "GeoIP DLL file name" + ) + mark_as_advanced( GEOIP_DLL_DIR GEOIP_DLL ) + endif() ELSE(GEOIP_FOUND) SET(GEOIP_LIBRARIES ) SET(GEOIP_INCLUDE_DIRS ) + SET(GEOIP_DLL_DIR ) + SET(GEOIP_DLL ) ENDIF(GEOIP_FOUND) MARK_AS_ADVANCED( GEOIP_LIBRARIES GEOIP_INCLUDE_DIRS ) |