summaryrefslogtreecommitdiff
path: root/indra/cmake/OpenJPEG.cmake
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@lindenlab.com>2008-06-02 21:14:31 +0000
committerBryan O'Sullivan <bos@lindenlab.com>2008-06-02 21:14:31 +0000
commit9db949eec327df4173fde3de934a87bedb0db13c (patch)
treeaeffa0f0e68b1d2ceb74d460cbbd22652c9cd159 /indra/cmake/OpenJPEG.cmake
parent419e13d0acaabf5e1e02e9b64a07648bce822b2f (diff)
svn merge -r88066:88786 svn+ssh://svn.lindenlab.com/svn/linden/branches/cmake-9-merge
dataserver-is-deprecated for-fucks-sake-whats-with-these-commit-markers
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)