From c000d8e94c42843e551ec454ec767ab0d9dffcd1 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 22 Mar 2007 14:44:05 +0000 Subject: [PATCH] Added CMake QT3, FLTK and osgintrospection example build support. --- CMakeLists.txt | 3 +++ examples/CMakeLists.txt | 12 ++++++++++++ examples/osgintrospection/CMakeLists.txt | 5 +++++ examples/osgsimpleviewerFLTK/CMakeLists.txt | 7 +++++++ examples/osgsimpleviewerQT3/CMakeLists.txt | 7 +++++++ 5 files changed, 34 insertions(+) create mode 100644 examples/osgintrospection/CMakeLists.txt create mode 100644 examples/osgsimpleviewerFLTK/CMakeLists.txt create mode 100644 examples/osgsimpleviewerQT3/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 52630ef01..5efd0d6a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -110,9 +110,12 @@ ENDIF(WIN32) # Common to all platforms: FIND_PACKAGE(FreeType) +FIND_PACKAGE(FLTK) FIND_PACKAGE(GLUT) FIND_PACKAGE(SDL) FIND_PACKAGE(Inventor) +FIND_PACKAGE(Qt3) +FIND_PACKAGE(Qt4) # Platform specific: # (We can approach this one of two ways. We can try to FIND everything diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 1ef3c8182..fdc7c1158 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -106,5 +106,17 @@ IF (SDL_FOUND) ADD_SUBDIRECTORY(osgsimpleviewerSDL) 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) #to add subject to find socket#ADD_SUBDIRECTORY(osgcluster) diff --git a/examples/osgintrospection/CMakeLists.txt b/examples/osgintrospection/CMakeLists.txt new file mode 100644 index 000000000..e85ead821 --- /dev/null +++ b/examples/osgintrospection/CMakeLists.txt @@ -0,0 +1,5 @@ +SET(TARGET_SRC osgintrospection.cpp ) +SET(TARGET_ADDED_LIBRARIES osgIntrospection ) + +#### end var setup ### +SETUP_EXAMPLE(osgintrospection) diff --git a/examples/osgsimpleviewerFLTK/CMakeLists.txt b/examples/osgsimpleviewerFLTK/CMakeLists.txt new file mode 100644 index 000000000..a6fa703e6 --- /dev/null +++ b/examples/osgsimpleviewerFLTK/CMakeLists.txt @@ -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) diff --git a/examples/osgsimpleviewerQT3/CMakeLists.txt b/examples/osgsimpleviewerQT3/CMakeLists.txt new file mode 100644 index 000000000..b825ebd5c --- /dev/null +++ b/examples/osgsimpleviewerQT3/CMakeLists.txt @@ -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)