6,566
edits
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 | 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 | 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"> |