-option(LOGGING "Set to OFF to build FlightGear without logging" ON)
-
-option(SP_FDMS "Set to ON to build FlightGear with special-purpose FDMs" OFF)
-option(ENABLE_UIUC_MODEL "Set to ON to build FlightGear with UIUCModel FDM" ON)
-option(ENABLE_LARCSIM "Set to ON to build FlightGear with LaRCsim FDM" ON)
-option(ENABLE_YASIM "Set to ON to build FlightGear with YASIM FDM" ON)
-option(ENABLE_JSBSIM "Set to ON to build FlightGear with JSBSim FDM" ON)
-option(ENABLE_FGADMIN "Set to ON to build FlightGear with FGADMIN" ON)
-option(EVENT_INPUT "Set to ON to build FlightGear with event-based Input support" ${EVENT_INPUT_DEFAULT})
-option(ENABLE_LIBSVN "Set to ON to build FlightGear/terrasync with libsvnclient support" ON)
-option(ENABLE_RTI "Set to ON to build SimGear with RTI support" OFF)
-option(WITH_FGPANEL "Set to ON to build the fgpanel application" ON)
-
-if (MSVC)
- GET_FILENAME_COMPONENT(PARENT_DIR ${PROJECT_SOURCE_DIR} PATH)
- if (CMAKE_CL_64)
- SET(TEST_3RDPARTY_DIR "${PARENT_DIR}/3rdparty.x64")
- else (CMAKE_CL_64)
- SET(TEST_3RDPARTY_DIR "${PARENT_DIR}/3rdparty")
- endif (CMAKE_CL_64)
- if (EXISTS ${TEST_3RDPARTY_DIR})
- set(MSVC_3RDPARTY_ROOT ${PARENT_DIR} CACHE PATH "Location where the third-party dependencies are extracted")
- else (EXISTS ${TEST_3RDPARTY_DIR})
- set(MSVC_3RDPARTY_ROOT NOT_FOUND CACHE PATH "Location where the third-party dependencies are extracted")
- endif (EXISTS ${TEST_3RDPARTY_DIR})
-else (MSVC)
- set(MSVC_3RDPARTY_ROOT NOT_FOUND CACHE PATH "Location where the third-party dependencies are extracted")
-endif (MSVC)
+# FlightGear build options
+option(SIMGEAR_SHARED "Set to ON when SimGear was built as a shared library" OFF)
+option(LOGGING "Set to ON to build FlightGear with logging support (default)" ON)
+option(SP_FDMS "Set to ON to build FlightGear with special-purpose FDMs" OFF)
+option(ENABLE_UIUC_MODEL "Set to ON to build FlightGear with UIUCModel FDM" OFF)
+option(ENABLE_LARCSIM "Set to ON to build FlightGear with LaRCsim FDM" OFF)
+option(ENABLE_YASIM "Set to ON to build FlightGear with YASIM FDM (default)" ON)
+option(ENABLE_JSBSIM "Set to ON to build FlightGear with JSBSim FDM (default)" ON)
+option(EVENT_INPUT "Set to ON to build FlightGear with event-based Input support" ${EVENT_INPUT_DEFAULT})
+option(ENABLE_LIBSVN "Set to ON to build FlightGear/terrasync with libsvnclient support (default)" ON)
+option(ENABLE_RTI "Set to ON to build FlightGear with RTI support" OFF)
+option(ENABLE_PROFILE "Set to ON to build FlightGear with gperftools profiling support" OFF)
+option(JPEG_FACTORY "Set to ON to build FlightGear with JPEG-factory support" OFF)
+option(SYSTEM_SQLITE "Set to ON to build FlightGear with the system's SQLite3 library" OFF)
+
+# additional utilities
+option(ENABLE_FGADMIN "Set to ON to build the FGADMIN application (default)" ON)
+option(ENABLE_FGELEV "Set to ON to build the fgelev application (default)" ON)
+option(WITH_FGPANEL "Set to ON to build the fgpanel application (default)" ON)
+option(ENABLE_FGVIEWER "Set to ON to build the fgviewer application (default)" ON)
+option(ENABLE_GPSSMOOTH "Set to ON to build the GPSsmooth application (default)" ON)
+option(ENABLE_TERRASYNC "Set to ON to build the terrasync application (default)" ON)
+
+option(ENABLE_FGJS "Set to ON to build the fgjs application (default)" ON)
+option(ENABLE_JS_DEMO "Set to ON to build the js_demo application (default)" ON)
+
+option(ENABLE_METAR "Set to ON to build the metar application (default)" ON)
+
+option(ENABLE_TESTS "Set to ON to build test applications (default)" ON)