blob: a74acf8fe70dcc6c4cd6966eb27120671318d0fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
Index: libs/lensfun/CMakeLists.txt
===================================================================
--- libs/lensfun/CMakeLists.txt (Revision 158)
+++ libs/lensfun/CMakeLists.txt (Arbeitskopie)
@@ -26,3 +26,12 @@
RUNTIME DESTINATION ${BINDIR}
LIBRARY DESTINATION ${LIBDIR}
ARCHIVE DESTINATION ${LIBDIR})
+
+IF(UNIX AND NOT APPLE)
+ SET(CONF_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_MICRO}.${VERSION_BUGFIX}")
+ SET(CONF_LIBDIR "${CMAKE_INSTALL_LIBDIR}/")
+ SET(CONF_INCLUDEDIR "${CMAKE_INSTALL_PREFIX}/${INCLUDEDIR}/")
+ SET(CONF_LENSFUN_STATIC "")
+ CONFIGURE_FILE("lensfun.pc.in" "lensfun.pc" @ONLY)
+ INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/lensfun.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
+ENDIF(UNIX AND NOT APPLE)
|