[1.5] Add install rules for openjpip client

This commit is contained in:
Mathieu Malaterre 2012-04-19 12:30:30 +00:00
parent 95cf10e979
commit 3aba3e203b
1 changed files with 8 additions and 0 deletions

View File

@ -77,6 +77,10 @@ if(Java_Development_FOUND AND Java_JAVAC_EXECUTABLE)
COMMENT "building opj_viewer.jar" COMMENT "building opj_viewer.jar"
) )
INSTALL(FILES ${LIBRARY_OUTPUT_PATH}/opj_viewer.jar
DESTINATION ${OPENJPEG_INSTALL_LIB_DIR} COMPONENT JavaModule
)
# 2. opj_viewer_xerces # 2. opj_viewer_xerces
# search for package org.apache.xerces.parsers # search for package org.apache.xerces.parsers
find_file(APACHE_XERCES_JAR 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 DEPENDS ${LIBRARY_OUTPUT_PATH}/opj_viewer_xerces.jar
COMMENT "building 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() endif()
else(Java_Development_FOUND) else(Java_Development_FOUND)
message(WARNING "No java compiler found. Wont be able to build java viewer") message(WARNING "No java compiler found. Wont be able to build java viewer")