forked from speed-dreams/speed-dreams-code
Fix build with SDL 1
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6130 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: c55339ed323290cb3aba7f0a91a4a81893436376 Former-commit-id: 8ddaf26b3104816f6fb5a3a3d192b62c22d97830
This commit is contained in:
parent
ebe8ce502a
commit
dcf1cf6a5b
2 changed files with 10 additions and 4 deletions
|
@ -24,8 +24,6 @@ SET(OSGGRAPH_HEADERS Utils/OsgVectorArrayAdapter.h
|
|||
Render/OsgRender.h
|
||||
Render/OsgReflectionMapping.h
|
||||
Render/OsgShader.h
|
||||
|
||||
Viewer/OsgGraphicsWindow.h
|
||||
Viewer/OsgView.h
|
||||
Viewer/OsgScreens.h
|
||||
Viewer/OsgCamera.h
|
||||
|
@ -40,6 +38,10 @@ SET(OSGGRAPH_HEADERS Utils/OsgVectorArrayAdapter.h
|
|||
OsgMain.h
|
||||
)
|
||||
|
||||
IF(OPTION_SDL2)
|
||||
SET(OSGGRAPH_HEADERS ${OSGGRAPH_HEADERS} Viewer/OsgGraphicsWindow.h)
|
||||
ENDIF(OPTION_SDL2)
|
||||
|
||||
SET(OSGGRAPH_SOURCES Utils/OsgMath.cpp
|
||||
#Utils/OsgOptions.cpp
|
||||
|
||||
|
@ -64,8 +66,6 @@ SET(OSGGRAPH_SOURCES Utils/OsgMath.cpp
|
|||
Render/OsgRender.cpp
|
||||
Render/OsgReflectionMapping.cpp
|
||||
Render/OsgShader.cpp
|
||||
|
||||
Viewer/OsgGraphicsWindow.cpp
|
||||
Viewer/OsgView.cpp
|
||||
Viewer/OsgScreens.cpp
|
||||
Viewer/OsgCamera.cpp
|
||||
|
@ -80,6 +80,10 @@ SET(OSGGRAPH_SOURCES Utils/OsgMath.cpp
|
|||
OsgMain.cpp
|
||||
)
|
||||
|
||||
IF(OPTION_SDL2)
|
||||
SET(OSGGRAPH_SOURCES ${OSGGRAPH_SOURCES} Viewer/OsgGraphicsWindow.cpp)
|
||||
ENDIF(OPTION_SDL2)
|
||||
|
||||
INCLUDE_DIRECTORIES(Utils Sky Loader Scenery Render Viewer Car .)
|
||||
|
||||
ADD_INTERFACE_INCLUDEDIR()
|
||||
|
|
|
@ -26,7 +26,9 @@
|
|||
#include <osg/FrontFace>
|
||||
|
||||
#include "OsgScreens.h"
|
||||
#if SDL_MAJOR_VERSION >= 2
|
||||
#include "OsgGraphicsWindow.h"
|
||||
#endif
|
||||
#include "OsgDebugHUD.h"
|
||||
#include "OsgReflectionMapping.h"
|
||||
#include "OsgMain.h"
|
||||
|
|
Loading…
Reference in a new issue