Installation fixes when using CMake

This commit is contained in:
Ben Boeckel 2010-10-26 16:46:01 +00:00
parent 84714b4fab
commit 8bce4c962b
1 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,10 @@ ENDIF(WIN32)
# Create the library # Create the library
#ADD_LIBRARY(${OPENJPEG_LIBRARY_NAME} ${OPENJPEG_SRCS}) #ADD_LIBRARY(${OPENJPEG_LIBRARY_NAME} ${OPENJPEG_SRCS})
ADD_LIBRARY(${OPJ_PREFIX}openjp3dvm ${JP3DVM_SRCS}) ADD_LIBRARY(${OPJ_PREFIX}openjp3dvm ${JP3DVM_SRCS})
SET_TARGET_PROPERTIES(${OPJ_PREFIX}openjp3dvm
PROPERTIES
VERSION 1.3.0
SOVERSION 1)
# Install library # Install library
INSTALL_TARGETS(/lib/ ${OPJ_PREFIX}openjp3dvm) INSTALL_TARGETS(/lib/ ${OPJ_PREFIX}openjp3dvm)
@ -25,3 +29,5 @@ INSTALL_TARGETS(/lib/ ${OPJ_PREFIX}openjp3dvm)
INSTALL(FILES openjpeg.h INSTALL(FILES openjpeg.h
DESTINATION ${OPENJPEG_INSTALL_INCLUDE_DIR}/openjpeg3d-1.3 DESTINATION ${OPENJPEG_INSTALL_INCLUDE_DIR}/openjpeg3d-1.3
RENAME openjpeg3d.h) RENAME openjpeg3d.h)
INSTALL(CODE
"EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_INCLUDE_DIR}/openjpeg3d-1.3/openjpeg3d.h \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_INCLUDE_DIR}/openjpeg3d.h)")