ENH: Add very simple tests (simply run command line with no option)
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Thu, 6 Sep 2007 16:38:06 +0000 (16:38 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Thu, 6 Sep 2007 16:38:06 +0000 (16:38 +0000)
CMakeLists.txt
ChangeLog
codec/CMakeLists.txt

index a7a3e3b28fdfdf2869c043a6d74549f7adf12420..6b563fa5590d2c68f6cacdd206d54aa887c3086d 100644 (file)
@@ -81,7 +81,7 @@ ENDIF(BUILD_DOCUMENTATION)
 
 #-----------------------------------------------------------------------------
 # For openjpeg team if they ever want Dart+CMake
-IF(OPJ_STANDALONE)
+IF(OPENJPEG_STANDALONE)
   INCLUDE(Dart)
   MARK_AS_ADVANCED(BUILD_TESTING DART_ROOT TCL_TCLSH)
   IF(BUILD_TESTING)
@@ -89,7 +89,7 @@ IF(OPJ_STANDALONE)
     SET(BUILDNAME "OpenJPEG-${CMAKE_SYSTEM}-${CMAKE_C_COMPILER}" CACHE STRING "Name of build on the dashboard")
     MARK_AS_ADVANCED(BUILDNAME)
   ENDIF(BUILD_TESTING)
-ENDIF(OPJ_STANDALONE)
+ENDIF(OPENJPEG_STANDALONE)
 
 # TODO, technically we should add tests, e.g:
 # http://www.crc.ricoh.com/~gormish/jpeg2000conformance/
index eb500934c4278c0c22676c91efb81fd52bef5845..0cdd7892f5850d4cf2a38eab669c2c13e345af83 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,13 +6,14 @@ What's New for OpenJPEG
 + : added
 
 September 6, 2007
-* [Mathieu Malaterre] CMake: start compiling mj2, jpwl and jp3d
-* [Mathieu Malaterre] CMake: output all executable/libs into one single directory
-* [Mathieu Malaterre] CMake: start compiling index_create
-* [Mathieu Malaterre] OpenJPEG.rc update copyright year
-* [Mathieu Malaterre] CMake: add Java j2kviewer but do not compile it using cmake since cmake has too poor support for Java. Should create a custom command running ant instead.
-* [Mathieu Malaterre] CMake: Add doxygen output
++ [Mathieu Malaterre] CMake: start compiling mj2, jpwl and jp3d
++ [Mathieu Malaterre] CMake: output all executable/libs into one single directory
++ [Mathieu Malaterre] CMake: start compiling index_create
++ [Mathieu Malaterre] OpenJPEG.rc update copyright year
++ [Mathieu Malaterre] CMake: add Java j2kviewer but do not compile it using cmake since cmake has too poor support for Java. Should create a custom command running ant instead.
++ [Mathieu Malaterre] CMake: Add doxygen output
 + [GB] One more field in the codestream_info struct for recording the number of packets per tile part; JPWL now distributes the EPBs in all the tile part headers
++ [Mathieu Malaterre] CMake: Add very simple tests (simply run command line with no option)
 
 September 4, 2007
 + [GB] Added some fields in the codestream_info structure: they are used to record the position of single tile parts. Changed also the write_index function in the codec, to reflect the presence of this new information.
index 7cb80904c4c6c538f65081bb597198fa472b3ffe..a381840cefe03d6b843a2315cc0963b5fd2209f4 100644 (file)
@@ -42,6 +42,7 @@ FIND_PACKAGE(TIFF REQUIRED)
 FOREACH(exe j2k_to_image image_to_j2k)
   ADD_EXECUTABLE(${exe} ${exe}.c ${common_SRCS})
   TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjpeg ${TIFF_LIBRARIES})
+  ADD_TEST(${exe} ${exe})
   # On unix you need to link to the math library:
   IF(UNIX)
     TARGET_LINK_LIBRARIES(${exe} m)