From 48b6e553909f55798459196639fbc2320d7ec488 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 22 May 2009 08:31:58 +0000 Subject: [PATCH] From Alberto Luacas, added new pkg-cofig files --- CMakeLists.txt | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b4e78063..2ba429bee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -795,14 +795,36 @@ IF(CMAKE_CPACK_COMMAND) ENDIF() ENDIF() -# Generate pkg-config configuration file +# Generate pkg-config configuration files -CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/packaging/pkgconfig/openscenegraph.pc.in - ${PROJECT_BINARY_DIR}/packaging/pkgconfig/openscenegraph.pc +SET(PKGCONFIG_FILES + openscenegraph + openscenegraph-osg + openscenegraph-osgDB + openscenegraph-osgFX + openscenegraph-osgGA + openscenegraph-osgParticle + openscenegraph-osgSim + openscenegraph-osgText + openscenegraph-osgUtil + openscenegraph-osgTerrain + openscenegraph-osgManipulator + openscenegraph-osgViewer + openscenegraph-osgWidget + openscenegraph-osgShadow + openscenegraph-osgAnimation + openscenegraph-osgVolume + openscenegraph-osgIntrospection +) + +FOREACH(PKGCONFIG_FILE ${PKGCONFIG_FILES}) + CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/packaging/pkgconfig/${PKGCONFIG_FILE}.pc.in + ${PROJECT_BINARY_DIR}/packaging/pkgconfig/${PKGCONFIG_FILE}.pc @ONLY ) + INSTALL(FILES ${PROJECT_BINARY_DIR}/packaging/pkgconfig/${PKGCONFIG_FILE}.pc DESTINATION lib${LIB_POSTFIX}/pkgconfig COMPONENT libopenscenegraph-dev) +ENDFOREACH(PKGCONFIG_FILE) -INSTALL(FILES ${PROJECT_BINARY_DIR}/packaging/pkgconfig/openscenegraph.pc DESTINATION lib${LIB_POSTFIX}/pkgconfig COMPONENT libopenscenegraph-dev) # Run this as late as possible so users can easier spot the message IF (NOT DEFINED REQUIRES_LIBPATH_MESSAGE AND ${CMAKE_INSTALL_PREFIX} STREQUAL "/usr/local")