Nasal/CppBind: Difference between revisions

Jump to navigation Jump to search
m
→‎Getting started: Switch to templates to provide links.
m (→‎Objective: Another switch to a template.)
m (→‎Getting started: Switch to templates to provide links.)
Line 49: Line 49:
== Getting started ==
== Getting started ==


Open $FG_SRC/Scripting/CMakeLists.txt and add these entries to the SOURCES/HEADER section respectively:
Open {{fg src file|path=src/Scripting/CMakeLists.txt}} and add these entries to the SOURCES/HEADER section respectively:
* NasalDemo.cxx (SOURCES)
* NasalDemo.cxx (SOURCES)
* NasalDemo.hxx (HEADERS)
* NasalDemo.hxx (HEADERS)
Line 65: Line 65:
</syntaxhighlight>
</syntaxhighlight>


Next, open $FG_SRC/Scripting/NasalSys.cxx and locate the FGNasalSys::init() method, to call the new initNasalDemo() function, add this to the bottom of the function:
Next, open {{fg src file|path=src/Scripting/NasalSys.cxx}} and locate the FGNasalSys::init() method, to call the new initNasalDemo() function, add this to the bottom of the function:


<syntaxhighlight lang="cpp" enclose="div">
<syntaxhighlight lang="cpp" enclose="div">

Navigation menu