1
0
Fork 0
flightgear/src/Scripting/CMakeLists.txt
James Turner a7ae3bf6cd Fix up linkage of Nasal tests inside CppUnit
Ensure correct test backend is used inside fgfs_test_suite
2022-01-05 15:41:33 +00:00

55 lines
1.1 KiB
CMake

include(FlightGearComponent)
set(SOURCES
nasal-props.cxx
NasalAddons.cxx
NasalAircraft.cxx
NasalPositioned.cxx
NasalPositioned_cppbind.cxx
NasalCanvas.cxx
NasalClipboard.cxx
NasalCondition.cxx
NasalHTTP.cxx
NasalString.cxx
NasalModelData.cxx
NasalSGPath.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
NasalSys.hxx
NasalSys_private.hxx
NasalAddons.hxx
NasalAircraft.hxx
NasalPositioned.hxx
NasalCanvas.hxx
NasalClipboard.hxx
NasalCondition.hxx
NasalHTTP.hxx
NasalString.hxx
NasalModelData.hxx
NasalSGPath.hxx
NasalFlightPlan.hxx
)
if(WIN32)
list(APPEND SOURCES ClipboardWindows.cxx)
elseif(APPLE)
list(APPEND SOURCES ClipboardCocoa.mm)
else()
find_package(X11)
if(X11_FOUND)
list(APPEND SOURCES ClipboardX11.cxx)
else()
list(APPEND SOURCES ClipboardFallback.cxx)
endif()
endif()
# NasalSys.cxx is passed as TEST_SOURCES since we need to compile it
# seperately whrn building the test_suite
flightgear_component(Scripting "${SOURCES}" "${HEADERS}" NasalSys.cxx)