-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jonathan Dieter <[email protected]>
- Loading branch information
Showing
42 changed files
with
1,005 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# - Try to find zchunk library | ||
# | ||
# This will define: | ||
# ZCK_FOUND - system has zchunk library | ||
# ZCK_LIBRARIES - Link these to use zchunk library | ||
# | ||
# Mostly copied from FindGLIB2.cmake | ||
# | ||
# Copyright (c) 2006 Andreas Schneider <[email protected]> | ||
# Copyright (c) 2006 Philippe Bernery <[email protected]> | ||
# Copyright (c) 2007 Daniel Gollub <[email protected]> | ||
# Copyright (c) 2007 Alban Browaeys <[email protected]> | ||
# Copyright (c) 2008 Michael Bell <[email protected]> | ||
# Copyright (c) 2008-2009 Bjoern Ricks <[email protected]> | ||
# Copyright (c) 2018 Jonathan Dieter <[email protected]> | ||
# | ||
# Redistribution and use is allowed according to the terms of the New | ||
# BSD license. | ||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
# | ||
|
||
|
||
IF (ZCK_LIBRARIES) | ||
# in cache already | ||
SET(ZCK_FOUND TRUE) | ||
ELSE (ZCK_LIBRARIES) | ||
|
||
INCLUDE(FindPkgConfig) | ||
|
||
## Glib | ||
IF ( ZCK_FIND_REQUIRED ) | ||
SET( _pkgconfig_REQUIRED "REQUIRED" ) | ||
ELSE ( ZCK_FIND_REQUIRED ) | ||
SET( _pkgconfig_REQUIRED "" ) | ||
ENDIF ( ZCK_FIND_REQUIRED ) | ||
|
||
IF ( ZCK_MIN_VERSION ) | ||
PKG_SEARCH_MODULE( ZCK ${_pkgconfig_REQUIRED} zck>=${ZCK_MIN_VERSION} ) | ||
ELSE ( ZCK_MIN_VERSION ) | ||
PKG_SEARCH_MODULE( ZCK ${_pkgconfig_REQUIRED} zck ) | ||
ENDIF ( ZCK_MIN_VERSION ) | ||
|
||
IF (ZCK_FOUND) | ||
IF (NOT ZCK_FIND_QUIETLY) | ||
MESSAGE (STATUS "Found zchunk: ${ZCK_LIBDIR}/lib${ZCK_LIBRARIES} (found version \"${ZCK_VERSION}\")") | ||
ENDIF (NOT ZCK_FIND_QUIETLY) | ||
ELSE (ZCK_FOUND) | ||
IF (ZCK_FIND_REQUIRED) | ||
MESSAGE (SEND_ERROR "Could not find zchunk") | ||
ENDIF (ZCK_FIND_REQUIRED) | ||
ENDIF (ZCK_FOUND) | ||
|
||
MARK_AS_ADVANCED(ZCK_LIBRARIES) | ||
|
||
ENDIF (ZCK_LIBRARIES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.