2007-03-06 20:03:33 +08:00
|
|
|
PROJECT(OSG_APPLICATIONS)
|
|
|
|
|
|
|
|
SET(OSGCORE_BUNDLED TRUE)
|
|
|
|
|
|
|
|
IF(NOT OSGCORE_BUNDLED)
|
2009-03-24 00:05:42 +08:00
|
|
|
FIND_PACKAGE(OSGCORE)
|
|
|
|
IF(OSGCORE_FOUND)
|
|
|
|
INCLUDE(${OSGCORE_USE_FILE})
|
|
|
|
ELSE()
|
|
|
|
MESSAGE(ERROR "OSGCORE neeeded but NOT FOUND")
|
|
|
|
ENDIF()
|
|
|
|
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../../Macros)
|
|
|
|
ENDIF()
|
2007-03-09 21:47:37 +08:00
|
|
|
SET(OPENSCENEGRAPH_APPLICATION_DIR ${PROJECT_SOURCE_DIR})
|
2007-03-06 20:03:33 +08:00
|
|
|
|
|
|
|
|
2007-03-19 20:30:26 +08:00
|
|
|
SET(TARGET_DEFAULT_PREFIX "application_")
|
|
|
|
SET(TARGET_DEFAULT_LABEL_PREFIX "Applications")
|
|
|
|
SET(TARGET_COMMON_LIBRARIES
|
2007-09-13 00:28:50 +08:00
|
|
|
OpenThreads
|
2007-03-19 20:30:26 +08:00
|
|
|
osg
|
|
|
|
osgDB
|
|
|
|
osgUtil
|
|
|
|
osgGA
|
|
|
|
osgViewer
|
|
|
|
osgText
|
|
|
|
)
|
|
|
|
|
2008-12-16 04:32:15 +08:00
|
|
|
IF(DYNAMIC_OPENSCENEGRAPH)
|
|
|
|
ADD_SUBDIRECTORY(osgviewer)
|
|
|
|
ADD_SUBDIRECTORY(osgarchive)
|
|
|
|
ADD_SUBDIRECTORY(osgconv)
|
|
|
|
ADD_SUBDIRECTORY(osgfilecache)
|
2008-12-20 02:37:23 +08:00
|
|
|
ADD_SUBDIRECTORY(osgversion)
|
2009-03-24 00:05:42 +08:00
|
|
|
ELSE()
|
2008-12-16 04:32:15 +08:00
|
|
|
# need to define this on win32 or linker cries about _declspecs
|
|
|
|
ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
|
|
|
|
|
|
|
|
ADD_SUBDIRECTORY(osgversion)
|
2009-03-24 00:05:42 +08:00
|
|
|
ENDIF()
|
2007-03-06 20:03:33 +08:00
|
|
|
|