Imported existing code
This commit is contained in:
22
indra/cmake/OpenJPEG.cmake
Normal file
22
indra/cmake/OpenJPEG.cmake
Normal file
@@ -0,0 +1,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)
|
||||
Reference in New Issue
Block a user