Canvas sandbox: Difference between revisions

Jump to navigation Jump to search
m
Line 190: Line 190:
</syntaxhighlight>
</syntaxhighlight>


So all that is needed is including the osgWidget/PdfReader header and editing the top-level CMakeListst.txt file to ensure that osgWidget is added as a required library in the find_package() call.
So all that is needed is including the osgWidget/PdfReader header and editing the top-level CMakeListst.txt file to ensure that osgWidget is added as a required library in the find_package() call:
 
<syntaxhighlight lang="diff">
 
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5e3b905..c32f830 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -203,7 +203,7 @@ else()
        message(STATUS "Sound support: ENABLED")
    endif(ENABLE_SOUND)
-    find_package(OpenSceneGraph 3.2.0 REQUIRED osgText osgSim osgDB osgParticle osgGA osgViewer osgUtil)
+    find_package(OpenSceneGraph 3.2.0 REQUIRED osgText osgSim osgDB osgParticle osgGA osgViewer osgUtil osgWidget)
endif(SIMGEAR_HEADLESS)
find_package(ZLIB REQUIRED)
</syntaxhighlight>
 


To turn this into a proper element, we can next open the header itself and check what methods are available, so that these can be exposed via Canvas properties
To turn this into a proper element, we can next open the header itself and check what methods are available, so that these can be exposed via Canvas properties

Navigation menu