diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-09-02 22:07:07 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-09-02 22:07:07 +0000 |
| commit | 7c4d8699b2e9ba64f98bd2a0290080726fa8ccfe (patch) | |
| tree | bdb43761035b14a4ad1dd2d86c7e12a89963a0a0 /cmake | |
| parent | f8204ae7059f1b49c01c72e1bc9647f366cb34b9 (diff) | |
- areny su ulozene v *.zip archivoch
( totalne rozmrdany zdrojovy kod -- zajtra to dokoncim )
git-svn-id: http://opensvn.csie.org/tuxanci_ng@263 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/FindZZIP.cmake | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/cmake/FindZZIP.cmake b/cmake/FindZZIP.cmake new file mode 100644 index 0000000..75b46a5 --- /dev/null +++ b/cmake/FindZZIP.cmake @@ -0,0 +1,30 @@ +# - Find zzip +# Find the native ZZIP includes and library +# +# ZZIP_INCLUDE_DIR - where to find zzip.h, etc. +# ZZIP_LIBRARIES - List of libraries when using zzip. +# ZZIP_FOUND - True if zzip found. + + +IF (ZZIP_INCLUDE_DIR) + # Already in cache, be silent + SET(ZZIP_FIND_QUIETLY TRUE) +ENDIF (ZZIP_INCLUDE_DIR) + +FIND_PATH(ZZIP_INCLUDE_DIR zzip.h) + +SET(ZZIP_NAMES zzip) +FIND_LIBRARY(ZZIP_LIBRARY NAMES ${ZZIP_NAMES} ) + +# handle the QUIETLY and REQUIRED arguments and set ZZIP_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(ZZIP DEFAULT_MSG ZZIP_LIBRARY ZZIP_INCLUDE_DIR) + +IF(ZZIP_FOUND) + SET( ZZIP_LIBRARIES ${ZZIP_LIBRARY} ) +ELSE(ZZIP_FOUND) + SET( ZZIP_LIBRARIES ) +ENDIF(ZZIP_FOUND) + +MARK_AS_ADVANCED( ZZIP_LIBRARY ZZIP_INCLUDE_DIR ) |