install man pages by default. install CHANGES and LICENSE

This commit is contained in:
Antonin Descampe 2010-11-17 10:59:21 +00:00
parent 223a39b51e
commit 3afd3b1afd
5 changed files with 19 additions and 8 deletions

View File

@ -6,6 +6,7 @@ What's New for OpenJPEG
+ : added + : added
November 17, 2010 November 17, 2010
! [antonin] install man pages by default. install CHANGES and LICENSE
! [antonin] minor changes in cmake files (from winfried) ! [antonin] minor changes in cmake files (from winfried)
November 16, 2010 November 16, 2010

View File

@ -227,6 +227,11 @@ CONFIGURE_FILE( ${OPENJPEG_SOURCE_DIR}/CMake/OpenJPEGConfig.cmake.in
INSTALL( FILES ${OPENJPEG_BINARY_DIR}/OpenJPEGConfig.cmake INSTALL( FILES ${OPENJPEG_BINARY_DIR}/OpenJPEGConfig.cmake
DESTINATION ${OPENJPEG_INSTALL_PACKAGE_DIR} DESTINATION ${OPENJPEG_INSTALL_PACKAGE_DIR}
) )
# install CHANGES and LICENSE
INSTALL(
FILES CHANGES
LICENSE
DESTINATION ${OPENJPEG_INSTALL_DOC_DIR})
# #
IF(UNIX OR CYGWIN) IF(UNIX OR CYGWIN)
SET(CMAKE_INCLUDE_PATH /usr/include /usr/local/include /opt/include SET(CMAKE_INCLUDE_PATH /usr/include /usr/local/include /opt/include

View File

@ -56,6 +56,14 @@ FOREACH(exe j2k_to_image image_to_j2k j2k_dump)
) )
ENDFOREACH(exe) ENDFOREACH(exe)
# Install man pages
INSTALL(
FILES ../doc/man/man1/image_to_j2k.1
../doc/man/man1/j2k_dump.1
../doc/man/man1/j2k_to_image.1
DESTINATION ${OPENJPEG_INSTALL_MAN_DIR}/man1)
#
if(BUILD_TESTING) if(BUILD_TESTING)
# Do testing here, once we know the examples are being built: # Do testing here, once we know the examples are being built:
FILE(GLOB_RECURSE OPENJPEG_DATA_IMAGES_GLOB FILE(GLOB_RECURSE OPENJPEG_DATA_IMAGES_GLOB

View File

@ -13,11 +13,3 @@ ADD_CUSTOM_TARGET(doxygen
) )
ENDIF(DOXYGEN_EXECUTABLE) ENDIF(DOXYGEN_EXECUTABLE)
INSTALL(
FILES man/man1/image_to_j2k.1
man/man1/j2k_dump.1
man/man1/j2k_to_image.1
DESTINATION ${OPENJPEG_INSTALL_MAN_DIR}/man1)
INSTALL(
FILES man/man3/libopenjpeg.3
DESTINATION ${OPENJPEG_INSTALL_MAN_DIR}/man3)

View File

@ -52,3 +52,8 @@ INSTALL(FILES openjpeg.h
) )
INSTALL(CODE INSTALL(CODE
"EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_INCLUDE_DIR}/${subdir}/openjpeg.h \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_INCLUDE_DIR}/openjpeg.h)") "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_INCLUDE_DIR}/${subdir}/openjpeg.h \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_INCLUDE_DIR}/openjpeg.h)")
# install man page of the library
INSTALL(
FILES ../doc/man/man3/libopenjpeg.3
DESTINATION ${OPENJPEG_INSTALL_MAN_DIR}/man3)