diff options
| author | Tomáš Chvátal <scarabeus@gentoo.org> | 2009-11-04 18:01:25 +0100 |
|---|---|---|
| committer | Tomáš Chvátal <scarabeus@gentoo.org> | 2009-11-04 18:01:25 +0100 |
| commit | 710843e4dfd146257500be7ad9c0a5c0d61e56c4 (patch) | |
| tree | ddbb2e744296480c11ce6822ffb80678043f9c25 /cmake/FindZIP.cmake | |
| parent | cbeea28cabebfc45fc0ff0b6446c818b72d8c4cc (diff) | |
Use PkgConfig where possible
TODO: gettext, SDL_ttf
Drop windows bundled libs, since .pc should be able to pick them up on
windows too.
Diffstat (limited to 'cmake/FindZIP.cmake')
| -rw-r--r-- | cmake/FindZIP.cmake | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/cmake/FindZIP.cmake b/cmake/FindZIP.cmake deleted file mode 100644 index bbc3765..0000000 --- a/cmake/FindZIP.cmake +++ /dev/null @@ -1,42 +0,0 @@ -# - Find zip -# Find the native ZIP includes and library -# -# ZIP_INCLUDE_DIR - where to find zip.h, etc. -# ZIP_LIBRARIES - List of libraries when using zip. -# ZIP_FOUND - True if zip found. - - -IF(ZIP_LIBRARIES AND ZIP_INCLUDE_DIR) - # Already in cache, be silent - SET(ZIP_FIND_QUIETLY TRUE) -ELSE(ZIP_LIBRARIES AND ZIP_INCLUDE_DIR) - FIND_PATH(ZIP_INCLUDE_DIR zip.h - PATHS - /usr/local/include - /usr/include - ${CMAKE_SOURCE_DIR}/packaging/windows/LibZip/include - NO_DEFAULT_PATH - ) - - FIND_LIBRARY(ZIP_LIBRARIES NAMES zip zip-1 - PATH_SUFFIXES lib64 lib - PATHS - /usr/local - /usr - ${CMAKE_SOURCE_DIR}/packaging/windows/LibZip/ - ) - - # handle the QUIETLY and REQUIRED arguments and set ZIP_FOUND to TRUE if - # all listed variables are TRUE - INCLUDE(FindPackageHandleStandardArgs) - FIND_PACKAGE_HANDLE_STANDARD_ARGS(ZIP DEFAULT_MSG ZIP_LIBRARIES ZIP_INCLUDE_DIR) - - IF(NOT ZIP_FOUND) - IF(ZIP_REQUIRED) - MESSAGE(FATAL_ERROR "libzip not found") - ENDIF(ZIP_REQUIRED) - SET(ZIP_LIBRARIES) - ENDIF(NOT ZIP_FOUND) -ENDIF(ZIP_LIBRARIES AND ZIP_INCLUDE_DIR) - -MARK_AS_ADVANCED( ZIP_LIBRARIES ZIP_INCLUDE_DIR ) |