Show
Ignore:
Timestamp:
11/11/10 17:51:46 (4 years ago)
Author:
robert
Message:

Moved finding of RSVG, Poppler-glib and GtkGl? out into their own Find*.cmake modules to enable easier specialization.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/CMakeLists.txt

    r11904 r11913  
    386386FIND_PACKAGE(DirectShow) 
    387387FIND_PACKAGE(SDL) 
     388FIND_PACKAGE(Poppler-glib) 
     389FIND_PACKAGE(RSVG) 
     390FIND_PACKAGE(GtkGl) 
    388391 
    389392# Include macro utilities here 
     
    409412 
    410413ENDIF() 
    411  
    412 #use pkg-config to find various modues 
    413 INCLUDE(FindPkgConfig OPTIONAL) 
    414  
    415 IF(PKG_CONFIG_FOUND) 
    416  
    417     INCLUDE(FindPkgConfig) 
    418  
    419     PKG_CHECK_MODULES(GTK gtk+-2.0) 
    420  
    421     IF(WIN32) 
    422         PKG_CHECK_MODULES(GTKGL gtkglext-win32-1.0) 
    423     ELSE() 
    424         PKG_CHECK_MODULES(GTKGL gtkglext-x11-1.0) 
    425     ENDIF() 
    426  
    427     PKG_CHECK_MODULES(RSVG librsvg-2.0) 
    428     PKG_CHECK_MODULES(CAIRO cairo) 
    429     PKG_CHECK_MODULES(POPPLER poppler-glib) 
    430  
    431 ENDIF() 
    432  
    433414 
    434415#optional example related dependencies