File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,7 @@ IF(WITH_CORE)
280
280
FIND_PACKAGE (Qwt REQUIRED )
281
281
ENDIF (WITH_GUI )
282
282
FIND_PACKAGE (LibZip REQUIRED )
283
+ FIND_PACKAGE (EXIV2 REQUIRED )
283
284
284
285
FIND_PACKAGE (Sqlite3 )
285
286
IF (NOT SQLITE3_FOUND )
Original file line number Diff line number Diff line change
1
+ # Find EXIV2
2
+ # ~~~~~~~~~~
3
+ # CMake module to search for EXIV2 library
4
+ #
5
+ # If it's found it sets EXIV2_FOUND to TRUE
6
+ # and following variables are set:
7
+ # EXIV2_INCLUDE_DIR
8
+ # EXIV2_LIBRARY
9
+ #
10
+
11
+
12
+ FIND_PATH (EXIV2_INCLUDE_DIR exiv2/exiv2.hpp /usr/local/include /usr/include )
13
+ FIND_LIBRARY (EXIV2_LIBRARY NAMES exiv2 PATHS /usr/local/lib /usr/lib )
14
+
15
+ IF (EXIV2_INCLUDE_DIR AND EXIV2_LIBRARY )
16
+ SET (EXIV2_FOUND TRUE )
17
+ MESSAGE (STATUS "Found exiv2: ${EXIV2_LIBRARY} " )
18
+ ELSE (EXIV2_INCLUDE_DIR AND EXIV2_LIBRARY )
19
+ MESSAGE (EXIV2_INCLUDE_DIR=${EXIV2_INCLUDE_DIR} )
20
+ MESSAGE (EXIV2_LIBRARY=${EXIV2_LIBRARY} )
21
+ MESSAGE (FATAL_ERROR "Could not find exiv2" )
22
+ ENDIF (EXIV2_INCLUDE_DIR AND EXIV2_LIBRARY )
You can’t perform that action at this time.
5 commit comments
nirvn commentedon Nov 13, 2018
@nyalldawson , it'd be good to update INSTALL to add libexiv2-dev dependency.
nyalldawson commentedon Nov 13, 2018
@nirvn that'll happen automatically when it's next updated
nirvn commentedon Nov 13, 2018
@nyalldawson , okeydokey.
jef-n commentedon Nov 13, 2018
5dab30b
nirvn commentedon Nov 13, 2018
@jef-n , thanks.