Add compilation test for standalone inclusion of openjpeg.h (#798)

This ensures all openjpeg.h dependencies are met.
Fix #673
This commit is contained in:
Matthieu Darbois 2016-07-14 11:06:26 +02:00 committed by GitHub
parent e40c28c2e8
commit b8bd1b0e07
2 changed files with 11 additions and 0 deletions

View File

@ -80,6 +80,8 @@ set_property(TEST rta4 APPEND PROPERTY DEPENDS tte4)
add_test(NAME rta5 COMMAND j2k_random_tile_access tte5.j2k)
set_property(TEST rta5 APPEND PROPERTY DEPENDS tte5)
add_executable(include_openjpeg include_openjpeg.c)
# No image send to the dashboard if lib PNG is not available.
if(NOT OPJ_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)")

9
tests/include_openjpeg.c Normal file
View File

@ -0,0 +1,9 @@
#include <openjpeg.h>
int main(int argc, char **argv)
{
(void)argc;
(void)argv;
return 0;
}