From 9027e7a9afa79a61df73ea6dba21e75ab751bff0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 15 Dec 2008 20:32:15 +0000 Subject: [PATCH] Limited the static build to just osversion and osgstaticviewer --- applications/CMakeLists.txt | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/applications/CMakeLists.txt b/applications/CMakeLists.txt index ed6018f31..9ec686c01 100644 --- a/applications/CMakeLists.txt +++ b/applications/CMakeLists.txt @@ -1,10 +1,5 @@ PROJECT(OSG_APPLICATIONS) -IF (NOT DYNAMIC_OPENSCENEGRAPH) - # need to define this on win32 or linker cries about _declspecs - ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC) -ENDIF(NOT DYNAMIC_OPENSCENEGRAPH) - SET(OSGCORE_BUNDLED TRUE) IF(NOT OSGCORE_BUNDLED) @@ -31,20 +26,19 @@ SET(TARGET_COMMON_LIBRARIES osgText ) -ADD_SUBDIRECTORY(osgviewer) -ADD_SUBDIRECTORY(osgarchive) -ADD_SUBDIRECTORY(osgconv) -ADD_SUBDIRECTORY(osgversion) -ADD_SUBDIRECTORY(osgfilecache) +IF(DYNAMIC_OPENSCENEGRAPH) -#REWRITE_CMAKELIST(ADD_OSG_EXAMPLE) + ADD_SUBDIRECTORY(osgviewer) + ADD_SUBDIRECTORY(osgarchive) + ADD_SUBDIRECTORY(osgconv) + ADD_SUBDIRECTORY(osgfilecache) -#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) +ELSE(DYNAMIC_OPENSCENEGRAPH) + + # need to define this on win32 or linker cries about _declspecs + ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC) + + ADD_SUBDIRECTORY(osgversion) + +ENDIF(DYNAMIC_OPENSCENEGRAPH)