File: FindLCMS2.cmake

package info (click to toggle)
hugin 2016.2.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 32,072 kB
  • ctags: 11,979
  • sloc: cpp: 116,753; ansic: 6,335; python: 1,517; perl: 577; sh: 168; xml: 102; makefile: 64
file content (36 lines) | stat: -rwxr-xr-x 744 bytes parent folder | download | duplicates (2)
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
# find lcms2 for Hugin

FIND_PATH(LCMS2_ROOT_DIR
  NAMES include/lcms2.h
  PATHS /usr/local
    /usr
    ${SOURCE_BASE_DIR}
  PATH_SUFFIXES
    lcms2-2.7
    lcms2-2.6
    lcms2-2.5
)

FIND_PATH(LCMS2_INCLUDE_DIR 
  NAMES lcms2.h
  PATHS
    ${LCMS2_ROOT_DIR}/include
)

include(FindLibraryWithDebug)
find_library_with_debug(LCMS2_LIBRARIES 
  WIN32_DEBUG_POSTFIX d    
  NAMES lcms2 lcms2_static
  PATHS ${SYSTEM_LIB_DIRS} ${LCMS2_ROOT_DIR}/lib ${LCMS2_ROOT_DIR}/bin ${LCMS2_ROOT_DIR}/Lib/MS
)


include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LCMS2 DEFAULT_MSG 
                                  LCMS2_INCLUDE_DIR LCMS2_LIBRARIES)

MARK_AS_ADVANCED(
  LCMS2_ROOT_DIR
  LCMS2_LIBRARIES
  LCMS2_INCLUDE_DIR
  )