summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMickael Savinaud <savmickael@users.noreply.github.com>2012-12-03 12:21:48 +0000
committerMickael Savinaud <savmickael@users.noreply.github.com>2012-12-03 12:21:48 +0000
commit87e09a09da6493b9e25193173091fd56c2063136 (patch)
tree115c6b4226d49d3a62264f9f269bdc8ad619b967 /CMakeLists.txt
parentba630816bc08c6d8a78817cb9763d6e84cc51dd9 (diff)
[trunk]add the pkgconfig support for openjp2 (thanks Winfried)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a2d58789..9b55c02a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -287,3 +287,14 @@ endif()
install(FILES LICENSE DESTINATION ${OPENJPEG_INSTALL_DOC_DIR})
include (cmake/OpenJPEGCPack.cmake)
+
+#-----------------------------------------------------------------------------
+# pkgconfig support
+if(UNIX)
+ # install in lib and not share (see multi-arch note above)
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/lib/openjp2/libopenjp2.pc.cmake.in
+ ${CMAKE_CURRENT_BINARY_DIR}/libopenjp2.pc @ONLY)
+ install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libopenjp2.pc DESTINATION
+ ${OPENJPEG_INSTALL_LIB_DIR}/pkgconfig )
+endif()
+#----------------------------------------------------------------------------- \ No newline at end of file