Skip to content
Permalink
Browse files

Add EXIV2 cmake variables

Forward port from kadas-albireo
  • Loading branch information
manisandro authored and nyalldawson committed Sep 2, 2015
1 parent d0d10f8 commit e0c79c457467bc423053c6e64c6cd7d54a17e16b
Showing with 23 additions and 0 deletions.
  1. +1 −0 CMakeLists.txt
  2. +22 −0 cmake/FindEXIV2.cmake
@@ -280,6 +280,7 @@ IF(WITH_CORE)
FIND_PACKAGE(Qwt REQUIRED)
ENDIF (WITH_GUI)
FIND_PACKAGE(LibZip REQUIRED)
FIND_PACKAGE(EXIV2 REQUIRED)

FIND_PACKAGE(Sqlite3)
IF (NOT SQLITE3_FOUND)
@@ -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)

5 comments on commit e0c79c4

@nirvn

This comment has been minimized.

Copy link
Contributor

@nirvn nirvn replied Nov 13, 2018

@nyalldawson , it'd be good to update INSTALL to add libexiv2-dev dependency.

@nyalldawson

This comment has been minimized.

Copy link
Collaborator

@nyalldawson nyalldawson replied Nov 13, 2018

@nirvn that'll happen automatically when it's next updated

@nirvn

This comment has been minimized.

Copy link
Contributor

@nirvn nirvn replied Nov 13, 2018

@nyalldawson , okeydokey.

@jef-n

This comment has been minimized.

Copy link
Member

@jef-n jef-n replied Nov 13, 2018

@nirvn

This comment has been minimized.

Copy link
Contributor

@nirvn nirvn replied Nov 13, 2018

@jef-n , thanks.

Please sign in to comment.
You can’t perform that action at this time.