[7a8841]: CMakeModules / FindLensfun.cmake  Maximize  Restore  History

Download this file

33 lines (28 with data), 878 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# - Find lensfun headers and libraries
FIND_PATH(LENSFUN_INCLUDE_DIR lensfun.h
/usr/local/include
/usr/include
${SOURCE_BASE_DIR}/lensfun/include/lensfun
)
FIND_LIBRARY(LENSFUN_LIBRARIES
NAMES lensfun
PATHS ${SYSTEM_LIB_DIRS}
${SOURCE_BASE_DIR}/lensfun/lib
)
IF(NOT ${HUGIN_SHARED})
FIND_LIBRARY(LENSFUN_REGEX_LIBRARIES
NAMES tre_regex
PATHS ${SYSTEM_LIB_DIRS}
${SOURCE_BASE_DIR}/lensfun/lib
)
# base path for searching for glib on windows
IF(WIN32)
IF(NOT GLIB2_BASE_DIR)
SET(GLIB2_BASE_DIR "${SOURCE_BASE_DIR}/glib-2.28.1" CACHE STRING "Base path of glib2 dir." FORCE)
ENDIF()
ENDIF()
FIND_PACKAGE(GLIB2 REQUIRED)
ENDIF()
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lensfun DEFAULT_MSG LENSFUN_INCLUDE_DIR LENSFUN_LIBRARIES)
MARK_AS_ADVANCED(LENSFUN_INCLUDE_DIR LENSFUN_LIBRARIES)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks