Nasal/CppBind: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
{{WIP}}
{{WIP}}
Open $FG_SRC/Scripting/CMakeLists.txt and add these entries to the SOURCES/HEADER section respectively:
* NasalTest.cxx (SOURCES)
* NasalTest.hxx


Next, create the NasalTest.cxx source file:
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
// $FG_SRC/Scripting/NasalTest.cxx
#include <simgear/nasal/cppbind/from_nasal.hxx>
#include <simgear/nasal/cppbind/from_nasal.hxx>
#include <simgear/nasal/cppbind/to_nasal.hxx>
#include <simgear/nasal/cppbind/to_nasal.hxx>

Navigation menu