X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInput%2FCMakeLists.txt;h=11b277ef2fb2777511a3684aee4c8dfbe6424be0;hb=239a0007631da53c68ca9c8e7989957c567acac9;hp=009929dce3caa3e0e3f45a57326878ae933d4bce;hpb=293d6b35655f86e6f209d2767f42bf0621ef3cb2;p=flightgear.git diff --git a/src/Input/CMakeLists.txt b/src/Input/CMakeLists.txt index 009929dce..11b277ef2 100644 --- a/src/Input/CMakeLists.txt +++ b/src/Input/CMakeLists.txt @@ -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