ENH: make it a little more user friendly
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Fri, 7 Sep 2007 13:27:16 +0000 (13:27 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Fri, 7 Sep 2007 13:27:16 +0000 (13:27 +0000)
CMakeLists.txt

index 550af2b1e5fffd4f214785e21c46a01373b614f4..8ea303b06d5a3036ac6c981d6c7c69a35a69d8c7 100644 (file)
@@ -95,12 +95,17 @@ ENDIF(OPENJPEG_STANDALONE)
 # http://www.crc.ricoh.com/~gormish/jpeg2000conformance/
 # http://www.jpeg.org/jpeg2000guide/testimages/testimages.html
 
+#-----------------------------------------------------------------------------
+# Adding JPEG2000_CONFORMANCE_DATA_ROOT
+FIND_PATH(JPEG2000_CONFORMANCE_DATA_ROOT testimages.html
+  ${OPENJPEG_SOURCE_DIR}/../jpeg2000testimages
+  $ENV{JPEG2000_CONFORMANCE_DATA_ROOT}
+)
+
 FILE(GLOB_RECURSE OPENJPEG_DATA_IMAGES_GLOB
-#  "${OPENJPEG_SOURCE_DIR}/testing1/*.j2k"
-#  "${OPENJPEG_SOURCE_DIR}/testing1/*.jp2"
-  "${OPENJPEG_SOURCE_DIR}/testimages/*.j2k"
-  "${OPENJPEG_SOURCE_DIR}/testimages/*.j2c"
-  "${OPENJPEG_SOURCE_DIR}/testimages/*.jp2"
+  "${JPEG2000_CONFORMANCE_DATA_ROOT}/*.j2k"
+  "${JPEG2000_CONFORMANCE_DATA_ROOT}/*.j2c"
+  "${JPEG2000_CONFORMANCE_DATA_ROOT}/*.jp2"
   )
 
 FOREACH(filename ${OPENJPEG_DATA_IMAGES_GLOB})