Reactivate ctest
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 26 May 2010 09:45:12 +0000 (09:45 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 26 May 2010 09:45:12 +0000 (09:45 +0000)
CMakeLists.txt
codec/CMakeLists.txt

index 73d503fcb209f7ebdb610e56a56d65c0b8f2a617..8587520e5c3cceeb7bea55b7486f0e09f6f61fba 100644 (file)
@@ -99,8 +99,8 @@ ENDIF(BUILD_DOCUMENTATION)
 #-----------------------------------------------------------------------------
 # For openjpeg team if they ever want Dart+CMake
 IF(OPENJPEG_STANDALONE)
-  INCLUDE(Dart)
-  MARK_AS_ADVANCED(BUILD_TESTING DART_ROOT TCL_TCLSH)
+  INCLUDE(CTest)
+  #MARK_AS_ADVANCED(BUILD_TESTING DART_ROOT TCL_TCLSH)
   IF(BUILD_TESTING)
     ENABLE_TESTING()
     SET(BUILDNAME "OpenJPEG-${CMAKE_SYSTEM}-${CMAKE_C_COMPILER}" CACHE STRING "Name of build on the dashboard")
@@ -110,8 +110,8 @@ ENDIF(OPENJPEG_STANDALONE)
 
 # Adding test with dataset from:
 # http://www.crc.ricoh.com/~gormish/jpeg2000conformance/
+# -> wget http://www.crc.ricoh.com/~gormish/jpeg2000conformance/j2kp4files_v1_5.zip
 # http://www.jpeg.org/jpeg2000guide/testimages/testimages.html
-
 #-----------------------------------------------------------------------------
 # Adding JPEG2000_CONFORMANCE_DATA_ROOT
 FIND_PATH(JPEG2000_CONFORMANCE_DATA_ROOT testimages.html
index 26cd7eebbc323efb168c413cd74451c75e044393..32aed5eea1b0461a4a5e290f67b3149035a90711 100644 (file)
@@ -38,11 +38,12 @@ IF(NOT BUILD_SHARED_LIBS)
 ENDIF(NOT BUILD_SHARED_LIBS)
 
 FIND_PACKAGE(TIFF REQUIRED)
+FIND_PACKAGE(PNG REQUIRED)
 
 # Loop over all executables:
 FOREACH(exe j2k_to_image image_to_j2k)
   ADD_EXECUTABLE(${exe} ${exe}.c ${common_SRCS})
-  TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjpeg ${TIFF_LIBRARIES})
+  TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjpeg ${TIFF_LIBRARIES} ${PNG_LIBRARIES})
   ADD_TEST(${exe} ${EXECUTABLE_OUTPUT_PATH}/${exe})
   # calling those exe without option will make them fail always:
   SET_TESTS_PROPERTIES(${exe} PROPERTIES WILL_FAIL TRUE)