Added application CMakeLists.

This commit is contained in:
Robert Osfield 2007-03-06 12:03:33 +00:00
parent 6a6005caae
commit 75810c7335

View File

@ -0,0 +1,37 @@
PROJECT(OSG_APPLICATIONS)
SET(OSGCORE_BUNDLED TRUE)
IF(NOT OSGCORE_BUNDLED)
FIND_PACKAGE(OSGCORE)
IF(OSGCORE_FOUND)
INCLUDE(${OSGCORE_USE_FILE})
ELSE(OSGCORE_FOUND)
MESSAGE(ERROR "OSGCORE neeeded but NOT FOUND")
ENDIF(OSGCORE_FOUND)
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../../Macros)
ENDIF(NOT OSGCORE_BUNDLED)
SET(OPENSCENEGRAPH_EXAMPLE_DIR ${PROJECT_SOURCE_DIR})
SET(EXAMPLES_EXE_PATH ${PROJECT_BINARY_DIR}/bin)
MAKE_DIRECTORY(${EXAMPLES_EXE_PATH})
SET(EXECUTABLE_OUTPUT_PATH ${EXAMPLES_EXE_PATH})
INCLUDE(OsgMacroUtils)
ADD_OSG_EXAMPLE( osgviewer )
ADD_OSG_EXAMPLE( osgarchive )
ADD_OSG_EXAMPLE( osgconv )
ADD_OSG_EXAMPLE( osgversion )
#MESSAGE("---->${MY_EXAMPLE_LIST}<---------")
##########to get all the variables of Cmake
#GET_CMAKE_PROPERTY(MYVARS VARIABLES)
#FOREACH(myvar ${MYVARS})
# FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/AllVariables.txt
# "${myvar} -->${${myvar}}<-\n"
# )
#ENDFOREACH(myvar)