]> granicus.if.org Git - openjpeg/commitdiff
make openjpeg.h header symlink to match autotools
authorRex Dieter <rdieter@gmail.com>
Fri, 10 Feb 2012 01:25:03 +0000 (01:25 +0000)
committerRex Dieter <rdieter@gmail.com>
Fri, 10 Feb 2012 01:25:03 +0000 (01:25 +0000)
libopenjpeg/CMakeLists.txt

index feb2c8afe8cc1866e8bb91d5cc59f509a7944ef9..44894aff7614ae0d43db32c70fc9931bce12a599 100644 (file)
@@ -57,6 +57,10 @@ INSTALL(TARGETS ${OPENJPEG_LIBRARY_NAME}
 INSTALL(FILES openjpeg.h
   DESTINATION ${OPENJPEG_INSTALL_INCLUDE_DIR}/${OPENJPEG_INSTALL_SUBDIR} COMPONENT Headers
 )
+INSTALL( CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink
+  \"${OPENJPEG_INSTALL_SUBDIR}/openjpeg.h\"
+  \"\$ENV{DESTDIR}${OPENJPEG_INSTALL_INCLUDE_DIR}/openjpeg.h\")"
+)
 
 # install man page of the library
 INSTALL(