Added CMake build support for GLUT and SDL examples
This commit is contained in:
@@ -21,9 +21,7 @@ ADD_SUBDIRECTORY(osgblendequation)
|
||||
ADD_SUBDIRECTORY(osgcallback)
|
||||
ADD_SUBDIRECTORY(osgcamera)
|
||||
ADD_SUBDIRECTORY(osgcatch)
|
||||
#ADD_SUBDIRECTORY(osgcegui)
|
||||
ADD_SUBDIRECTORY(osgclip)
|
||||
#to add subject to find socket#ADD_SUBDIRECTORY(osgcluster)
|
||||
ADD_SUBDIRECTORY(osgcopy)
|
||||
ADD_SUBDIRECTORY(osgcubemap)
|
||||
ADD_SUBDIRECTORY(osgdelaunay)
|
||||
@@ -35,18 +33,10 @@ ADD_SUBDIRECTORY(osgforest)
|
||||
ADD_SUBDIRECTORY(osgfxbrowser)
|
||||
ADD_SUBDIRECTORY(osggeodemo)
|
||||
ADD_SUBDIRECTORY(osggeometry)
|
||||
#to add subject to find Glut
|
||||
#ADD_SUBDIRECTORY(osgGLUTkeyboardmouse)
|
||||
#ADD_SUBDIRECTORY(osgGLUTsimple)
|
||||
ADD_SUBDIRECTORY(osghangglide)
|
||||
ADD_SUBDIRECTORY(osghud)
|
||||
ADD_SUBDIRECTORY(osgimpostor)
|
||||
ADD_SUBDIRECTORY(osgintersection)
|
||||
|
||||
IF (BUILD_OSG_WRAPPERS)
|
||||
ADD_SUBDIRECTORY(osgintrospection)
|
||||
ENDIF(BUILD_OSG_WRAPPERS)
|
||||
|
||||
ADD_SUBDIRECTORY(osgkeyboard)
|
||||
ADD_SUBDIRECTORY(osgkeyboardmouse)
|
||||
ADD_SUBDIRECTORY(osglauncher)
|
||||
@@ -82,12 +72,6 @@ ADD_SUBDIRECTORY(osgshadowtexture)
|
||||
ADD_SUBDIRECTORY(osgshadow)
|
||||
ADD_SUBDIRECTORY(osgshape)
|
||||
ADD_SUBDIRECTORY(osgsimple)
|
||||
##################################################
|
||||
#ADD_SUBDIRECTORY(osgsimpleviewerXXX)
|
||||
#
|
||||
#need to find dependency on windowing libraries
|
||||
#
|
||||
##################################################
|
||||
ADD_SUBDIRECTORY(osgsimplifier)
|
||||
ADD_SUBDIRECTORY(osgsimulation)
|
||||
ADD_SUBDIRECTORY(osgterrain)
|
||||
@@ -108,3 +92,19 @@ ADD_SUBDIRECTORY(osgvertexprogram)
|
||||
ADD_SUBDIRECTORY(osgvolume)
|
||||
ADD_SUBDIRECTORY(osgwindows)
|
||||
|
||||
IF (BUILD_OSG_WRAPPERS)
|
||||
ADD_SUBDIRECTORY(osgintrospection)
|
||||
ENDIF(BUILD_OSG_WRAPPERS)
|
||||
|
||||
IF (GLUT_FOUND)
|
||||
ADD_SUBDIRECTORY(osgGLUTkeyboardmouse)
|
||||
ADD_SUBDIRECTORY(osgGLUTsimple)
|
||||
ADD_SUBDIRECTORY(osgsimpleviewerGLUT)
|
||||
ENDIF(GLUT_FOUND)
|
||||
|
||||
IF (SDL_FOUND)
|
||||
ADD_SUBDIRECTORY(osgsimpleviewerSDL)
|
||||
ENDIF(SDL_FOUND)
|
||||
|
||||
#ADD_SUBDIRECTORY(osgcegui)
|
||||
#to add subject to find socket#ADD_SUBDIRECTORY(osgcluster)
|
||||
|
||||
5
examples/osgGLUTkeyboardmouse/CMakeLists.txt
Normal file
5
examples/osgGLUTkeyboardmouse/CMakeLists.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
SET(TARGET_SRC osgGLUTkeyboardmouse.cpp )
|
||||
SET(TARGET_ADDED_LIBRARIES ${GLUT_glut_LIBRARY} )
|
||||
|
||||
#### end var setup ###
|
||||
SETUP_EXAMPLE(osgGLUTkeyboardmouse)
|
||||
5
examples/osgGLUTsimple/CMakeLists.txt
Normal file
5
examples/osgGLUTsimple/CMakeLists.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
SET(TARGET_SRC osgGLUTsimple.cpp )
|
||||
SET(TARGET_ADDED_LIBRARIES ${GLUT_glut_LIBRARY} )
|
||||
|
||||
#### end var setup ###
|
||||
SETUP_EXAMPLE(osgGLUTsimple)
|
||||
5
examples/osgsimpleviewerGLUT/CMakeLists.txt
Normal file
5
examples/osgsimpleviewerGLUT/CMakeLists.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
SET(TARGET_SRC osgsimpleviewerGLUT.cpp )
|
||||
SET(TARGET_ADDED_LIBRARIES ${GLUT_glut_LIBRARY} )
|
||||
|
||||
#### end var setup ###
|
||||
SETUP_EXAMPLE(osgsimpleviewerGLUT)
|
||||
7
examples/osgsimpleviewerSDL/CMakeLists.txt
Normal file
7
examples/osgsimpleviewerSDL/CMakeLists.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
SET(TARGET_SRC osgsimpleviewerSDL.cpp )
|
||||
SET(TARGET_ADDED_LIBRARIES ${SDL_LIBRARY} )
|
||||
|
||||
INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR} )
|
||||
|
||||
#### end var setup ###
|
||||
SETUP_EXAMPLE(osgsimpleviewerSDL)
|
||||
Reference in New Issue
Block a user