2011-12-21 11:19:36 +01:00
# Tests
INCLUDE_DIRECTORIES (
$ { O P E N J P E G _ S O U R C E _ D I R } / l i b o p e n j p e g
$ { O P E N J P E G _ S O U R C E _ D I R } / a p p l i c a t i o n s / c o d e c
$ { O P E N J P E G _ S O U R C E _ D I R } / a p p l i c a t i o n s / c o m m o n
$ { Z _ I N C L U D E _ D I R N A M E }
$ { P N G _ I N C L U D E _ D I R N A M E }
$ { T I F F _ I N C L U D E _ D I R N A M E }
)
2011-07-21 17:23:31 +02:00
# First thing define the common source:
2011-12-21 11:19:36 +01:00
SET ( comparePGXimages_SRCS comparePGXimages.c
$ { O P E N J P E G _ S O U R C E _ D I R } / a p p l i c a t i o n s / c o d e c / c o n v e r t . c
$ { O P E N J P E G _ S O U R C E _ D I R } / a p p l i c a t i o n s / c o m m o n / o p j _ g e t o p t . c
)
2011-09-01 14:08:10 +02:00
2011-12-21 11:19:36 +01:00
SET ( compare_dump_files_SRCS compare_dump_files.c
$ { O P E N J P E G _ S O U R C E _ D I R } / a p p l i c a t i o n s / c o m m o n / o p j _ g e t o p t . c )
2011-09-01 14:08:10 +02:00
2011-12-21 11:19:36 +01:00
SET ( compareRAWimages_SRCS compareRAWimages.c
$ { O P E N J P E G _ S O U R C E _ D I R } / a p p l i c a t i o n s / c o m m o n / o p j _ g e t o p t . c )
2011-07-21 17:23:31 +02:00
ADD_EXECUTABLE ( comparePGXimages ${ comparePGXimages_SRCS } )
2011-12-21 11:19:36 +01:00
TARGET_LINK_LIBRARIES ( comparePGXimages
$ { O P E N J P E G _ L I B R A R Y _ N A M E } $ { Z _ L I B N A M E }
$ { P N G _ L I B N A M E } $ { T I F F _ L I B N A M E } )
2011-07-25 18:33:52 +02:00
ADD_EXECUTABLE ( compare_dump_files ${ compare_dump_files_SRCS } )
2011-07-21 17:23:31 +02:00
2011-09-01 14:08:10 +02:00
ADD_EXECUTABLE ( compareRAWimages ${ compareRAWimages_SRCS } )
2011-07-21 17:23:31 +02:00
# 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)" )
ENDIF ( NOT HAVE_LIBPNG )
2011-07-21 18:26:23 +02:00
ADD_SUBDIRECTORY ( conformance )
2011-09-01 14:08:10 +02:00
ADD_SUBDIRECTORY ( nonregression )