Fix up linkage of Nasal tests inside CppUnit
Ensure correct test backend is used inside fgfs_test_suite
This commit is contained in:
parent
2b88a3c23f
commit
a7ae3bf6cd
3 changed files with 11 additions and 1 deletions
|
@ -59,6 +59,9 @@ flightgear_component(Main "${SOURCES}" "${HEADERS}" sentryIntegration.cxx)
|
||||||
# the main() function
|
# the main() function
|
||||||
set(MAIN_SOURCE
|
set(MAIN_SOURCE
|
||||||
bootstrap.cxx
|
bootstrap.cxx
|
||||||
|
# we only want this file when building FGFS, so it can't be
|
||||||
|
# part of fgfsObjects
|
||||||
|
${CMAKE_SOURCE_DIR}/src/Scripting/NasalUnitTesting.cxx
|
||||||
)
|
)
|
||||||
|
|
||||||
# Set up the embedded resources.
|
# Set up the embedded resources.
|
||||||
|
|
|
@ -13,8 +13,10 @@ set(SOURCES
|
||||||
NasalString.cxx
|
NasalString.cxx
|
||||||
NasalModelData.cxx
|
NasalModelData.cxx
|
||||||
NasalSGPath.cxx
|
NasalSGPath.cxx
|
||||||
NasalUnitTesting.cxx
|
|
||||||
NasalFlightPlan.cxx
|
NasalFlightPlan.cxx
|
||||||
|
# we don't add this here becuase we need to exclude it the testSuite
|
||||||
|
# so it can't go nto fgfsObjects library
|
||||||
|
# NasalUnitTesting.cxx
|
||||||
)
|
)
|
||||||
|
|
||||||
set(HEADERS
|
set(HEADERS
|
||||||
|
|
|
@ -124,3 +124,8 @@ naRef initNasalUnitTestCppUnit(naRef nasalGlobals, naContext c)
|
||||||
|
|
||||||
return naNil();
|
return naNil();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void shutdownNasalUnitTestInSim()
|
||||||
|
{
|
||||||
|
// stub
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue