diff --git a/CMakeLists.txt b/CMakeLists.txt index cc0f23a49..b7950bb1d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -875,9 +875,16 @@ SET(PKGCONFIG_FILES openscenegraph-osgShadow openscenegraph-osgAnimation openscenegraph-osgVolume - openscenegraph-osgIntrospection ) +IF(BUILD_OSG_WRAPPERS) + SET(PKGCONFIG_FILES ${PKGCONFIG_FILES} openscenegraph-osgIntrospection) +ENDIF(BUILD_OSG_WRAPPERS) + +IF(QT4_FOUND) + SET(PKGCONFIG_FILES ${PKGCONFIG_FILES} openscenegraph-osgQt) +ENDIF(QT4_FOUND) + FOREACH(PKGCONFIG_FILE ${PKGCONFIG_FILES}) CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/packaging/pkgconfig/${PKGCONFIG_FILE}.pc.in ${PROJECT_BINARY_DIR}/packaging/pkgconfig/${PKGCONFIG_FILE}.pc diff --git a/packaging/pkgconfig/openscenegraph-osgQt.pc.in b/packaging/pkgconfig/openscenegraph-osgQt.pc.in new file mode 100644 index 000000000..463cdb8d7 --- /dev/null +++ b/packaging/pkgconfig/openscenegraph-osgQt.pc.in @@ -0,0 +1,14 @@ +# pkg-config source file + +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=${prefix} +libdir=${exec_prefix}/lib@LIB_POSTFIX@ +includedir=${prefix}/include + +Name: openscenegraph-osgQt +Description: osgQt utility library. +Version: @OPENSCENEGRAPH_VERSION@ +Requires: openscenegraph-osgWidget openscenegraph-osgDB openscenegraph-osgUtil openscenegraph-osg openthreads +Conflicts: +Libs: -L${libdir} -losgQt +Cflags: -I${includedir}