summaryrefslogtreecommitdiff
path: root/indra/cmake/OpenJPEG.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/cmake/OpenJPEG.cmake')
-rw-r--r--indra/cmake/OpenJPEG.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/indra/cmake/OpenJPEG.cmake b/indra/cmake/OpenJPEG.cmake
new file mode 100644
index 0000000000..32dcb505aa
--- /dev/null
+++ b/indra/cmake/OpenJPEG.cmake
@@ -0,0 +1,20 @@
+# -*- cmake -*-
+
+set(OPENJPEG_FIND_QUIETLY ON)
+set(OPENJPEG_FIND_REQUIRED ON)
+
+if (STANDALONE)
+ include(FindOpenJPEG)
+else (STANDALONE)
+
+ 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)