aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/OpenJPEG.cmake
blob: fcc82c2f497b41d5f28e97293e7ff1881a61acab (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 (STANDALONE)
  include(FindOpenJPEG)
else (STANDALONE)
  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 (STANDALONE)