Skip to content

Commit

Permalink
Add compilation test for standalone inclusion of openjpeg.h
Browse files Browse the repository at this point in the history
This ensures all openjpeg.h dependencies are met.
Update uclouvain#673
  • Loading branch information
mayeut committed Jul 14, 2016
1 parent 18da615 commit 8b9ddef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
Expand Down
9 changes: 9 additions & 0 deletions tests/include_openjpeg.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <openjpeg.h>

int main(int argc, char **argv)
{
(void)argc;
(void)argv;

return 0;
}

0 comments on commit 8b9ddef

Please sign in to comment.