cppbind stubs for exposing FGProtocol/Networking stuff to Nasal space, as per: http...
[fg:hoorays-flightgear.git] / src / Scripting / CMakeLists.txt
1 include(FlightGearComponent)
2
3 set(SOURCES
4   NasalSys.cxx
5   nasal-props.cxx
6   NasalPositioned.cxx
7   NasalPositioned_cppbind.cxx
8   NasalCanvas.cxx
9   NasalClipboard.cxx
10   NasalCondition.cxx
11   NasalHTTP.cxx
12   NasalString.cxx
13   NasalModelData.cxx
14   NasalFGProtocol.cxx
15 )
16
17 set(HEADERS
18   NasalSys.hxx
19   NasalSys_private.hxx
20   NasalPositioned.hxx
21   NasalCanvas.hxx
22   NasalClipboard.hxx
23   NasalCondition.hxx
24   NasalHTTP.hxx
25   NasalString.hxx
26   NasalModelData.hxx
27   NasalFGProtocol.hxx
28 )
29
30
31 if(WIN32)
32   list(APPEND SOURCES ClipboardWindows.cxx)
33 elseif(APPLE)
34     list(APPEND SOURCES ClipboardCocoa.mm)
35 else()
36   find_package(X11)
37   if(X11_FOUND)
38     list(APPEND SOURCES ClipboardX11.cxx)
39   else()
40     list(APPEND SOURCES ClipboardFallback.cxx)
41   endif()
42 endif()
43
44 flightgear_component(Scripting "${SOURCES}" "${HEADERS}")
45