PageRenderTime 15ms CodeModel.GetById 10ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/cmake/OpenJPEG.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 22 lines | 16 code | 4 blank | 2 comment | 3 complexity | 1e2b1cbe20d3d23a21383cffffef2e93 MD5 | raw file
 1# -*- cmake -*-
 2include(Prebuilt)
 3
 4set(OPENJPEG_FIND_QUIETLY ON)
 5set(OPENJPEG_FIND_REQUIRED ON)
 6
 7if (STANDALONE)
 8  include(FindOpenJPEG)
 9else (STANDALONE)
10  use_prebuilt_binary(openjpeg)
11  
12  if(WINDOWS)
13    # Windows has differently named release and debug openjpeg(d) libs.
14    set(OPENJPEG_LIBRARIES 
15        debug openjpegd
16        optimized openjpeg)
17  else(WINDOWS)
18    set(OPENJPEG_LIBRARIES openjpeg)
19  endif(WINDOWS)
20  
21    set(OPENJPEG_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include/openjpeg)
22endif (STANDALONE)