Changeset 10262

Show
Ignore:
Timestamp:
05/22/09 10:31:58 (6 years ago)
Author:
robert
Message:

From Alberto Luacas, added new pkg-cofig files

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/CMakeLists.txt

    r10174 r10262  
    796796ENDIF() 
    797797 
    798 # Generate pkg-config configuration file 
    799  
    800 CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/packaging/pkgconfig/openscenegraph.pc.in 
    801         ${PROJECT_BINARY_DIR}/packaging/pkgconfig/openscenegraph.pc 
     798# Generate pkg-config configuration files 
     799 
     800SET(PKGCONFIG_FILES 
     801  openscenegraph 
     802  openscenegraph-osg 
     803  openscenegraph-osgDB 
     804  openscenegraph-osgFX 
     805  openscenegraph-osgGA 
     806  openscenegraph-osgParticle 
     807  openscenegraph-osgSim 
     808  openscenegraph-osgText 
     809  openscenegraph-osgUtil 
     810  openscenegraph-osgTerrain 
     811  openscenegraph-osgManipulator 
     812  openscenegraph-osgViewer 
     813  openscenegraph-osgWidget 
     814  openscenegraph-osgShadow 
     815  openscenegraph-osgAnimation 
     816  openscenegraph-osgVolume 
     817  openscenegraph-osgIntrospection 
     818) 
     819 
     820FOREACH(PKGCONFIG_FILE ${PKGCONFIG_FILES}) 
     821  CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/packaging/pkgconfig/${PKGCONFIG_FILE}.pc.in 
     822    ${PROJECT_BINARY_DIR}/packaging/pkgconfig/${PKGCONFIG_FILE}.pc 
    802823    @ONLY 
    803824    ) 
    804  
    805 INSTALL(FILES ${PROJECT_BINARY_DIR}/packaging/pkgconfig/openscenegraph.pc DESTINATION lib${LIB_POSTFIX}/pkgconfig COMPONENT libopenscenegraph-dev) 
     825  INSTALL(FILES ${PROJECT_BINARY_DIR}/packaging/pkgconfig/${PKGCONFIG_FILE}.pc DESTINATION lib${LIB_POSTFIX}/pkgconfig COMPONENT libopenscenegraph-dev) 
     826ENDFOREACH(PKGCONFIG_FILE) 
     827 
    806828 
    807829# Run this as late as possible so users can easier spot the message