diff --git a/applications/jpip/util/CMakeLists.txt b/applications/jpip/util/CMakeLists.txt index 6b93b4fc..d4a55c40 100644 --- a/applications/jpip/util/CMakeLists.txt +++ b/applications/jpip/util/CMakeLists.txt @@ -77,6 +77,10 @@ if(Java_Development_FOUND AND Java_JAVAC_EXECUTABLE) COMMENT "building opj_viewer.jar" ) + INSTALL(FILES ${LIBRARY_OUTPUT_PATH}/opj_viewer.jar + DESTINATION ${OPENJPEG_INSTALL_LIB_DIR} COMPONENT JavaModule + ) + # 2. opj_viewer_xerces # search for package org.apache.xerces.parsers find_file(APACHE_XERCES_JAR @@ -127,6 +131,10 @@ if(Java_Development_FOUND AND Java_JAVAC_EXECUTABLE) DEPENDS ${LIBRARY_OUTPUT_PATH}/opj_viewer_xerces.jar COMMENT "building opj_viewer_xerces.jar" ) + + INSTALL(FILES ${LIBRARY_OUTPUT_PATH}/opj_viewer_xerces.jar + DESTINATION ${OPENJPEG_INSTALL_LIB_DIR} COMPONENT JavaModule + ) endif() else(Java_Development_FOUND) message(WARNING "No java compiler found. Wont be able to build java viewer")