Fixed CMake support for osgsimpleviewWX

This commit is contained in:
Robert Osfield 2007-05-11 12:46:38 +00:00
parent 2ca67c0916
commit 5e161ff0e0
3 changed files with 8 additions and 2 deletions

View File

@ -123,13 +123,15 @@ FIND_PACKAGE(SDL)
FIND_PACKAGE(Inventor)
FIND_PACKAGE(Qt3)
FIND_PACKAGE(Qt4)
FIND_PACKAGE(wxWidgets)
FIND_PACKAGE(Jasper)
FIND_PACKAGE(COLLADA)
FIND_PACKAGE(Xine)
FIND_PACKAGE(OpenVRML)
FIND_PACKAGE(Performer)
SET(wxWidgets_USE_LIBS base core gl net)
FIND_PACKAGE(wxWidgets)
# Platform specific:
# (We can approach this one of two ways. We can try to FIND everything
# and simply check if we found the packages before actually building

View File

@ -3,7 +3,11 @@ SET(TARGET_SRC osgsimpleviewerWX.cpp )
SET(TARGET_H osgsimpleviewerWX.h )
SET(TARGET_ADDED_LIBRARIES ${wxWidgets_LIBRARIES} )
INCLUDE_DIRECTORIES(${wxWidgets_INCLUDE_DIRS} )
ADD_DEFINITIONS( ${wxWidgets_DEFINITIONS} )
#### end var setup ###
SETUP_EXAMPLE(osgsimpleviewerWX)

View File

@ -9,7 +9,7 @@
#include "wx/wx.h"
#endif
#include "wxOsgSample.h"
#include "osgsimpleviewerWX.h"
#include <osgGA/TrackballManipulator>
#include <osgDB/ReadFile>
#include <wx/image.h>