Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
23 additions
and
0 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,22 @@ | ||
# Find EXIV2 | ||
# ~~~~~~~~~~ | ||
# CMake module to search for EXIV2 library | ||
# | ||
# If it's found it sets EXIV2_FOUND to TRUE | ||
# and following variables are set: | ||
# EXIV2_INCLUDE_DIR | ||
# EXIV2_LIBRARY | ||
# | ||
|
||
|
||
FIND_PATH(EXIV2_INCLUDE_DIR exiv2/exiv2.hpp /usr/local/include /usr/include) | ||
FIND_LIBRARY(EXIV2_LIBRARY NAMES exiv2 PATHS /usr/local/lib /usr/lib) | ||
|
||
IF (EXIV2_INCLUDE_DIR AND EXIV2_LIBRARY) | ||
SET(EXIV2_FOUND TRUE) | ||
MESSAGE(STATUS "Found exiv2: ${EXIV2_LIBRARY}") | ||
ELSE (EXIV2_INCLUDE_DIR AND EXIV2_LIBRARY) | ||
MESSAGE(EXIV2_INCLUDE_DIR=${EXIV2_INCLUDE_DIR}) | ||
MESSAGE(EXIV2_LIBRARY=${EXIV2_LIBRARY}) | ||
MESSAGE(FATAL_ERROR "Could not find exiv2") | ||
ENDIF (EXIV2_INCLUDE_DIR AND EXIV2_LIBRARY) |
e0c79c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nyalldawson , it'd be good to update INSTALL to add libexiv2-dev dependency.
e0c79c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nirvn that'll happen automatically when it's next updated
e0c79c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nyalldawson , okeydokey.
e0c79c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5dab30b
e0c79c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jef-n , thanks.