add pkg-config support to cmake
This commit is contained in:
parent
08459fd944
commit
d2d6e1fd6f
3
CHANGES
3
CHANGES
|
@ -5,6 +5,9 @@ What's New for OpenJPEG
|
|||
! : changed
|
||||
+ : added
|
||||
|
||||
January 13, 2001
|
||||
+ [rdieter] add pkg-config support to cmake
|
||||
|
||||
January 9, 2011
|
||||
- [antonin] removed forgotten debug info in imagetopnm().
|
||||
|
||||
|
|
|
@ -143,6 +143,13 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/openjpeg_mangle.h.in
|
|||
@ONLY IMMEDIATE)
|
||||
ENDIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/openjpeg_mangle.h.in)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# pkgconfig support
|
||||
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/libopenjpeg1.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libopenjpeg1.pc )
|
||||
INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/libopenjpeg1.pc DESTINATION ${OPENJPEG_INSTALL_LIB_DIR}/pkgconfig )
|
||||
INSTALL( CODE
|
||||
"EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink \"libopenjpeg1.pc\" \"\$ENV{DESTDIR}${OPENJPEG_INSTALL_LIB_DIR}/pkgconfig/libopenjpeg.pc\")")
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Always build the library
|
||||
INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
prefix=${CMAKE_INSTALL_PREFIX}
|
||||
bindir=${OPENJPEG_INSTALL_BIN_DIR}
|
||||
datadir=${OPENJPEG_INSTALL_DATA_DIR}
|
||||
libdir=${OPENJPEG_INSTALL_LIB_DIR}
|
||||
includedir=${OPENJPEG_INSTALL_INCLUDE_DIR}
|
||||
|
||||
Name: openjpeg
|
||||
Description: JPEG2000 files library
|
||||
URL: http://www.openjpeg.org/
|
||||
Version: ${OPENJPEG_VERSION}
|
||||
Libs: -L${libdir} -lopenjpeg
|
||||
Cflags: -I${includedir}
|
Loading…
Reference in New Issue