X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fbin%2Fjp2%2FCMakeLists.txt;h=d583c2e6bb16c9e6b46893d97eeb202369b50d7a;hb=72deb588cbc8d5f56f8b0db3a2d120913e792cb8;hp=4374631743a69204380add3bbaf8a8eb00bc3b52;hpb=e7bc30b409fc864d7bcfec60254c4404a0c69c72;p=openjpeg.git diff --git a/src/bin/jp2/CMakeLists.txt b/src/bin/jp2/CMakeLists.txt index 43746317..d583c2e6 100644 --- a/src/bin/jp2/CMakeLists.txt +++ b/src/bin/jp2/CMakeLists.txt @@ -3,10 +3,23 @@ # First thing define the common source: set(common_SRCS convert.c + convert.h + convertbmp.c index.c + index.h ${OPENJPEG_SOURCE_DIR}/src/bin/common/color.c + ${OPENJPEG_SOURCE_DIR}/src/bin/common/color.h ${OPENJPEG_SOURCE_DIR}/src/bin/common/opj_getopt.c + ${OPENJPEG_SOURCE_DIR}/src/bin/common/opj_getopt.h + ${OPENJPEG_SOURCE_DIR}/src/bin/common/opj_string.h ) + +if(OPJ_HAVE_LIBTIFF) + list(APPEND common_SRCS converttif.c) +endif() +if(OPJ_HAVE_LIBPNG) + list(APPEND common_SRCS convertpng.c) +endif() # Headers file are located here: include_directories( @@ -50,8 +63,15 @@ foreach(exe opj_decompress opj_compress opj_dump) EXPORT OpenJPEGTargets DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Applications ) + if(OPJ_USE_DSYMUTIL) + add_custom_command(TARGET ${exe} POST_BUILD + COMMAND "dsymutil" "$" + COMMENT "dsymutil $" + DEPENDS ${exe}) + endif() endforeach() +if(BUILD_DOC) # Install man pages install( FILES ${OPENJPEG_SOURCE_DIR}/doc/man/man1/opj_compress.1 @@ -59,3 +79,4 @@ install( ${OPENJPEG_SOURCE_DIR}/doc/man/man1/opj_dump.1 DESTINATION ${OPENJPEG_INSTALL_MAN_DIR}/man1) # +endif()