summaryrefslogtreecommitdiff
path: root/indra/cmake/OpenJPEG.cmake
blob: bf0bde2ba7b85084765c2e8bde21a24fb090be75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- cmake -*-
include(Prebuilt)

set(OPENJPEG_FIND_QUIETLY ON)
set(OPENJPEG_FIND_REQUIRED ON)

if (USESYSTEMLIBS)
  include(FindOpenJPEG)
else (USESYSTEMLIBS)
  use_prebuilt_binary(openjpeg)
  
  if(WINDOWS)
    # Windows has differently named release and debug openjpeg(d) libs.
    set(OPENJPEG_LIBRARIES 
        debug openjpegd
        optimized openjpeg)
  else(WINDOWS)
    set(OPENJPEG_LIBRARIES openjpeg)
  endif(WINDOWS)
  
    set(OPENJPEG_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include/openjpeg)
endif (USESYSTEMLIBS)