[261128]: CMakeModules / FindPANO13.cmake Maximize Restore History

Download this file

FindPANO13.cmake    49 lines (44 with data), 1.7 kB

 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# - Find PANO13 headers and libraries
# modified for Hugin 0.7 Windows build 02Nov2007 TKSharpless
# reads cache variable
# SOURCE_BASE_DIR -- directory that contains hugin source root
# defines cache vars
# PANO13_INCLUDE_DIR, where to find pano13/panorama.h, etc.
# PANO13_LIBRARIES, release link library list.
# PANO13_DEBUG_LIBRARIES, debug ditto.
# PANO13_FOUND, If != "YES", do not try to use PANO13.
# In Pablo's Windows setup ${SOURCE_BASE_DIR}/libpano contains pano12
# and pano13. This code also works if pano13 is in ${SOURCE_BASE_DIR}
## NOTE the form "pano13/panorama.h" is used in #includes in some
## Hugin source files, so we are stuck with that for now.
FIND_PATH(PANO13_INCLUDE_DIR pano13/panorama.h
/usr/local/include
/usr/include
${SOURCE_BASE_DIR}/libpano
${SOURCE_BASE_DIR}
)
# Pablo's Windows setup has the link libs in subdirs Debug
# and Release of libpano/pano13, as "Panotools.lib". This
# code will also find them in pano13 or in pano13/lib, and
# with names pano13 or pano13d.
FIND_LIBRARY(PANO13_LIBRARIES
NAMES pano13
PATHS /usr/lib /usr/local/lib
"${PANO13_INCLUDE_DIR}/pano13/Release LIB CMD"
${PANO13_INCLUDE_DIR}/pano13/Release
${SOURCE_BASE_DIR}/pano13/lib
${SOURCE_BASE_DIR}/pano13
)
IF(PANO13_INCLUDE_DIR)
IF(PANO13_LIBRARIES)
SET( PANO13_FOUND "YES" )
FIND_LIBRARY( PANO13_DEBUG_LIBRARIES
NAMES Panotools pano13d pano13
PATHS /usr/lib /usr/local/lib
"${PANO13_INCLUDE_DIR}/pano13/Debug LIB CMD"
${PANO13_INCLUDE_DIR}/pano13/Debug
${SOURCE_BASE_DIR}/pano13/lib
${SOURCE_BASE_DIR}/pano13
)
ENDIF(PANO13_LIBRARIES)
ENDIF(PANO13_INCLUDE_DIR)