Jean-Yves Didier

creation d'un systeme modulaire de compilation des bibliothèques de composants

system(pkg-config --exists Coin):HAS_COIN=TRUE
!isEmpty(HAS_COIN) {
message (Coin was found)
}
system(pkg-config --exists libavformat && pkg-config --exists libavcodec && pkg-config --exists libavutil &&pkg-config --exists libswscale )
system(pkg-config --atleast-version=52.25 libavcodec):OK_FFMPEG+=avcodec
system(pkg-config --atleast-version=52.102 libavformat):OK_FFMPEG+=avformat
system(pkg-config --atleast-version=0.12 libswscale):OK_FFMPEG+=swscale
!isEmpty(OK_FFMPEG) {
message(Good versions of libraries: $$OK_FFMPEG)
}
count(OK_FFMPEG,3) {
message (ffmpeg was found)
HAS_FFMPEG=TRUE
}
system(pkg-config --exists Kenny):HAS_KENNY=TRUE
isEmpty(HAS_KENNY) {
message (Oh my God they killed Kenny!)
}
system(pkg-config --exists opencv):HAS_OPENCV=TRUE
!isEmpty(HAS_OPENCV) {
message (OpenCV was found)
}
OSGLIBS=openscenegraph-osg openscenegraph-osgDB openscenegraph-osgShadow \
openscenegraph-osgViewer openscenegraph-osgManipulator \
openscenegraph-osgText openscenegraph-osgTerrain openscenegraph-osgVolume \
openscenegraph-osgAnimation openscenegraph-osgSim openscenegraph-osgFX \
openscenegraph-osgGA openscenegraph-osgQt
system(pkg-config --exists $${OSGLIBS}):HAS_OSG=TRUE
!isEmpty(HAS_OSG) {
message (Openscenegraph was found)
}
!isEmpty(HAS_FFMPEG) {
SUBDIRS+=imageprocessing/ffmpeg
message(imageprocessing/ffmpeg included)
}
!isEmpty(HAS_OPENCV) {
SUBDIRS+=imageprocessing/opencv
message(imageprocessing/opencv included)
}
!isEmpty(HAS_OPENCV) {
SUBDIRS+=legacy/input/framegrabber/opencv
message(legacy/input/framegrabber/opencv included)
}
!isEmpty(HAS_OPENCV) {
SUBDIRS+=legacy/opencv
message(legacy/opencv included)
}
!isEmpty(HAS_OPENCV) {
SUBDIRS+=legacy/pattern
message(legacy/pattern included)
}
!isEmpty(HAS_OPENCV) {
SUBDIRS+=legacy/poseestimators
message(legacy/poseestimators included)
}
!isEmpty(HAS_COIN) {
SUBDIRS+=scene/coin
message(scene/coin included)
}
\ No newline at end of file
!isEmpty(HAS_COIN) {
SUBDIRS+=scene/coinutils
message(scene/coinutils included)
}
!isEmpty(HAS_COIN) {
!isEmpty(HAS_OPENCV) {
SUBDIRS+=scene/cv2so
message(scene/cv2so included)
}
}
!isEmpty(HAS_COIN) {
SUBDIRS+=scene/obj2so
message(scene/obj2so included)
}
!isEmpty(HAS_OSG) {
SUBDIRS+=scene/osg
message(scene/osg included)
}