Added CMake QT3, FLTK and osgintrospection example build support.

This commit is contained in:
Robert Osfield 2007-03-22 14:44:05 +00:00
parent e457914a40
commit c000d8e94c
5 changed files with 34 additions and 0 deletions

View File

@ -110,9 +110,12 @@ ENDIF(WIN32)
# Common to all platforms: # Common to all platforms:
FIND_PACKAGE(FreeType) FIND_PACKAGE(FreeType)
FIND_PACKAGE(FLTK)
FIND_PACKAGE(GLUT) FIND_PACKAGE(GLUT)
FIND_PACKAGE(SDL) FIND_PACKAGE(SDL)
FIND_PACKAGE(Inventor) FIND_PACKAGE(Inventor)
FIND_PACKAGE(Qt3)
FIND_PACKAGE(Qt4)
# Platform specific: # Platform specific:
# (We can approach this one of two ways. We can try to FIND everything # (We can approach this one of two ways. We can try to FIND everything

View File

@ -106,5 +106,17 @@ IF (SDL_FOUND)
ADD_SUBDIRECTORY(osgsimpleviewerSDL) ADD_SUBDIRECTORY(osgsimpleviewerSDL)
ENDIF(SDL_FOUND) ENDIF(SDL_FOUND)
IF (QT_FOUND)
IF (QT4_FOUND)
ADD_SUBDIRECTORY(osgsimpleviewerQT4)
ELSE(QT4_FOUND)
ADD_SUBDIRECTORY(osgsimpleviewerQT3)
ENDIF(QT4_FOUND)
ENDIF(QT_FOUND)
IF (FLTK_FOUND)
ADD_SUBDIRECTORY(osgsimpleviewerFLTK)
ENDIF(FLTK_FOUND)
#ADD_SUBDIRECTORY(osgcegui) #ADD_SUBDIRECTORY(osgcegui)
#to add subject to find socket#ADD_SUBDIRECTORY(osgcluster) #to add subject to find socket#ADD_SUBDIRECTORY(osgcluster)

View File

@ -0,0 +1,5 @@
SET(TARGET_SRC osgintrospection.cpp )
SET(TARGET_ADDED_LIBRARIES osgIntrospection )
#### end var setup ###
SETUP_EXAMPLE(osgintrospection)

View File

@ -0,0 +1,7 @@
SET(TARGET_SRC osgsimpleviewerFLTK.cpp )
SET(TARGET_ADDED_LIBRARIES ${FLTK_LIBRARIES} )
INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR} )
#### end var setup ###
SETUP_EXAMPLE(osgsimpleviewerFLTK)

View File

@ -0,0 +1,7 @@
SET(TARGET_SRC osgsimpleviewerQT3.cpp )
SET(TARGET_ADDED_LIBRARIES ${QT_LIBRARIES} )
INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR} )
#### end var setup ###
SETUP_EXAMPLE(osgsimpleviewerQT3)