]> git.mxchange.org Git - flightgear.git/blob - src/Scripting/CMakeLists.txt
Expose some methods on strings to Nasal
[flightgear.git] / src / Scripting / CMakeLists.txt
1 include(FlightGearComponent)
2
3 set(SOURCES
4         NasalSys.cxx
5         nasal-props.cxx
6     NasalPositioned.cxx
7     NasalCanvas.cxx
8     NasalClipboard.cxx
9     NasalCondition.cxx
10     NasalString.cxx
11         )
12
13 set(HEADERS
14         NasalSys.hxx
15     NasalPositioned.hxx
16     NasalCanvas.hxx
17     NasalClipboard.hxx
18     NasalCondition.hxx
19     NasalString.hxx
20         )
21
22 if(WIN32)
23   list(APPEND SOURCES ClipboardWindows.cxx)
24 elseif(APPLE)
25     list(APPEND SOURCES ClipboardCocoa.mm)
26 else()
27   find_package(X11)
28   if(X11_FOUND)
29     list(APPEND SOURCES ClipboardX11.cxx)
30   else()
31     list(APPEND SOURCES ClipboardFallback.cxx)
32   endif()
33 endif()
34
35 flightgear_component(Scripting "${SOURCES}" "${HEADERS}")
36