Move some OSG static library setup code

sceneinput
slothlife 10 years ago
parent df99d5a59d
commit 1b3cc957f8

@ -6,6 +6,14 @@
#include <components/vfs/manager.hpp> #include <components/vfs/manager.hpp>
#ifdef OSG_LIBRARY_STATIC
// This list of plugins should match with the list in the top-level CMakelists.txt.
USE_OSGPLUGIN(png)
USE_OSGPLUGIN(tga)
USE_OSGPLUGIN(dds)
USE_OSGPLUGIN(jpeg)
#endif
namespace namespace
{ {

@ -16,12 +16,6 @@
#include "imagetosurface.hpp" #include "imagetosurface.hpp"
#ifdef OSG_LIBRARY_STATIC #ifdef OSG_LIBRARY_STATIC
// This list of plugins should match with the list in the top-level CMakelists.txt.
USE_OSGPLUGIN(png)
USE_OSGPLUGIN(tga)
USE_OSGPLUGIN(dds)
USE_OSGPLUGIN(jpeg)
// Sets the default windowing system interface according to the OS. // Sets the default windowing system interface according to the OS.
// Necessary for OpenSceneGraph to do some things, like decompression. // Necessary for OpenSceneGraph to do some things, like decompression.
USE_GRAPHICSWINDOW() USE_GRAPHICSWINDOW()

Loading…
Cancel
Save