34 lines
818 B
CMake
34 lines
818 B
CMake
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_APPLICATION_DIR ${PROJECT_SOURCE_DIR})
|
|
|
|
INCLUDE(OsgMacroUtils)
|
|
|
|
|
|
ADD_OSG_APPLICATION( osgviewer )
|
|
ADD_OSG_APPLICATION( osgarchive )
|
|
ADD_OSG_APPLICATION( osgconv )
|
|
ADD_OSG_APPLICATION( 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)
|
|
|