-target_link_libraries(js_demo
- ${SIMGEAR_CORE_LIBRARIES}
- ${PLIB_LIBRARIES}
- ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
+ install(TARGETS fgjs RUNTIME DESTINATION bin)
+endif()
+
+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}
+ )