| 1 |
include(FlightGearComponent) |
| 2 |
|
| 3 |
set(SOURCES |
| 4 |
nasal-props.cxx |
| 5 |
NasalAddons.cxx |
| 6 |
NasalAircraft.cxx |
| 7 |
NasalPositioned.cxx |
| 8 |
NasalPositioned_cppbind.cxx |
| 9 |
NasalCanvas.cxx |
| 10 |
NasalClipboard.cxx |
| 11 |
NasalCondition.cxx |
| 12 |
NasalHTTP.cxx |
| 13 |
NasalString.cxx |
| 14 |
NasalModelData.cxx |
| 15 |
NasalSGPath.cxx |
| 16 |
NasalFlightPlan.cxx |
| 17 |
sqlitelib.cxx |
| 18 |
# we don't add this here becuase we need to exclude it the testSuite |
| 19 |
# so it can't go nto fgfsObjects library |
| 20 |
# NasalUnitTesting.cxx |
| 21 |
) |
| 22 |
|
| 23 |
set(HEADERS |
| 24 |
NasalSys.hxx |
| 25 |
NasalSys_private.hxx |
| 26 |
NasalAddons.hxx |
| 27 |
NasalAircraft.hxx |
| 28 |
NasalPositioned.hxx |
| 29 |
NasalCanvas.hxx |
| 30 |
NasalClipboard.hxx |
| 31 |
NasalCondition.hxx |
| 32 |
NasalHTTP.hxx |
| 33 |
NasalString.hxx |
| 34 |
NasalModelData.hxx |
| 35 |
NasalSGPath.hxx |
| 36 |
NasalFlightPlan.hxx |
| 37 |
) |
| 38 |
|
| 39 |
if(WIN32) |
| 40 |
list(APPEND SOURCES ClipboardWindows.cxx) |
| 41 |
elseif(APPLE) |
| 42 |
list(APPEND SOURCES ClipboardCocoa.mm) |
| 43 |
else() |
| 44 |
find_package(X11) |
| 45 |
if(X11_FOUND) |
| 46 |
list(APPEND SOURCES ClipboardX11.cxx) |
| 47 |
else() |
| 48 |
list(APPEND SOURCES ClipboardFallback.cxx) |
| 49 |
endif() |
| 50 |
endif() |
| 51 |
|
| 52 |
# NasalSys.cxx is passed as TEST_SOURCES since we need to compile it |
| 53 |
# seperately when building the test_suite |
| 54 |
|
| 55 |
flightgear_component(Scripting "${SOURCES}" "${HEADERS}" NasalSys.cxx) |
| 56 |
|