fixed a segfault with fgets return value for some cases inside test function compare_...
[openjpeg.git] / tests / CMakeLists.txt
index ec93702326e73fcda3dccfee7f4c539fe574fd8d..972e9e99c5da1e6ae2d47097acda0d1d85c8aa9d 100644 (file)
@@ -13,6 +13,8 @@ SET(comparePGXimages_SRCS comparePGXimages.c ${OPENJPEG_SOURCE_DIR}/applications
 
 SET(compare_dump_files_SRCS compare_dump_files.c)
 
+SET(compareRAWimages_SRCS compareRAWimages.c)
+
 # If not getopt was found then add it to the exe:
 IF(DONT_HAVE_GETOPT)
   message("dont have getopt, we will add it")
@@ -25,6 +27,11 @@ IF(DONT_HAVE_GETOPT)
     ${compare_dump_files_SRCS}
     ${OPENJPEG_SOURCE_DIR}/applications/common/getopt.c
   )
+  
+  SET(compareRAWimages_SRCS
+    ${compareRAWimages_SRCS}
+    ${OPENJPEG_SOURCE_DIR}/applications/common/getopt.c
+  )
 ENDIF(DONT_HAVE_GETOPT)
 
 ADD_EXECUTABLE(comparePGXimages ${comparePGXimages_SRCS})
@@ -36,6 +43,8 @@ TARGET_LINK_LIBRARIES(comparePGXimages ${OPENJPEG_LIBRARY_NAME}
                                        
 ADD_EXECUTABLE(compare_dump_files ${compare_dump_files_SRCS})
 
+ADD_EXECUTABLE(compareRAWimages ${compareRAWimages_SRCS})
+
 # No image send to the dashboard if lib PNG is not available.
 IF(NOT HAVE_LIBPNG)
   MESSAGE(WARNING "Lib PNG seems to be not available: if you want run the non-regression tests with images reported to the dashboard, you need it (try BUILD_THIRDPARTY)")