]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/CMakeLists.txt
Use new SGBucket API in tile-manager
[flightgear.git] / src / Input / CMakeLists.txt
index 009929dce3caa3e0e3f45a57326878ae933d4bce..11b277ef2fb2777511a3684aee4c8dfbe6424be0 100644 (file)
@@ -39,26 +39,32 @@ if(EVENT_INPUT)
        include_directories(${UDEV_INCLUDE_DIR})
 endif()
 
-set(FGJS_SOURCES
-       fgjs.cxx
-       jsinput.cxx
-       jssuper.cxx
-       )
-
-add_executable(fgjs ${FGJS_SOURCES})
+if(ENABLE_FGJS)
+    set(FGJS_SOURCES
+        fgjs.cxx
+        jsinput.cxx
+        jssuper.cxx
+    )
 
-target_link_libraries(fgjs 
-       ${SIMGEAR_CORE_LIBRARIES}
-       ${PLIB_LIBRARIES}
-       ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
+    add_executable(fgjs ${FGJS_SOURCES})
+    target_link_libraries(fgjs
+        ${SIMGEAR_CORE_LIBRARIES}
+        ${PLIB_LIBRARIES}
+        ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
+    )
 
-add_executable(js_demo js_demo.cxx)
+    install(TARGETS fgjs RUNTIME DESTINATION bin)
+endif()
 
-target_link_libraries(js_demo 
-       ${SIMGEAR_CORE_LIBRARIES}
-       ${PLIB_LIBRARIES}
-       ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
+if(ENABLE_JS_DEMO)
+    add_executable(js_demo js_demo.cxx)
+    target_link_libraries(js_demo
+        ${SIMGEAR_CORE_LIBRARIES}
+        ${PLIB_LIBRARIES}
+        ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
+    )
 
-flightgear_component(Input "${SOURCES}" "${HEADERS}")
+    install(TARGETS js_demo RUNTIME DESTINATION bin)
+endif()
 
-install(TARGETS fgjs js_demo RUNTIME DESTINATION bin)
+flightgear_component(Input "${SOURCES}" "${HEADERS}")
\ No newline at end of file