]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scripting/CMakeLists.txt
Expose parse_markdown to Nasal.
[flightgear.git] / src / Scripting / CMakeLists.txt
index d3eab7a70561053a915a8618049e2b59d048c3a9..1a40daa70ab7f585f0bf0ae0a30a9d79f8e1d955 100644 (file)
@@ -1,16 +1,46 @@
 include(FlightGearComponent)
 
 set(SOURCES
-       NasalSys.cxx
-       nasal-props.cxx
-    NasalPositioned.cxx
-       )
+  NasalSys.cxx
+  nasal-props.cxx
+  NasalAircraft.cxx
+  NasalPositioned.cxx
+  NasalPositioned_cppbind.cxx
+  NasalCanvas.cxx
+  NasalClipboard.cxx
+  NasalCondition.cxx
+  NasalHTTP.cxx
+  NasalString.cxx
+  NasalModelData.cxx
+  NasalSGPath.cxx
+)
 
 set(HEADERS
-       NasalSys.hxx
-    NasalPositioned.hxx
-       )
+  NasalSys.hxx
+  NasalSys_private.hxx
+  NasalAircraft.hxx
+  NasalPositioned.hxx
+  NasalCanvas.hxx
+  NasalClipboard.hxx
+  NasalCondition.hxx
+  NasalHTTP.hxx
+  NasalString.hxx
+  NasalModelData.hxx
+  NasalSGPath.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()
 
-       
 flightgear_component(Scripting "${SOURCES}" "${HEADERS}")