diff --git a/CMakeLists.txt b/CMakeLists.txt index 429f22ff3..3f21c1645 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,6 +56,7 @@ 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" OFF) option(ENABLE_LIBSVN "Set to ON to build FlightGear/terrasync with libsvnclient support" OFF) +option(WITH_FGPANEL "Set to ON to build the fgpanel application" ON) set(MSVC_3RDPARTY_ROOT NOT_FOUND CACHE PATH "Location where the third-party dependencies are extracted") @@ -65,6 +66,12 @@ else() set(FG_NDEBUG 1) endif() +if(WITH_FGPANEL) + message(STATUS "Will build fgpanel") +else() + message(STATUS "Will NOT build fgpanel") +endif() + if(SP_FDMS) set(ENABLE_SP_FDM 1) endif() diff --git a/utils/fgpanel/CMakeLists.txt b/utils/fgpanel/CMakeLists.txt index 90dc2f2d9..65661273b 100644 --- a/utils/fgpanel/CMakeLists.txt +++ b/utils/fgpanel/CMakeLists.txt @@ -14,6 +14,7 @@ add_executable(fgpanel main.cxx panel_io.cxx) target_link_libraries(fgpanel + -lrt ${PNG_LIBRARIES} ${GLUT_LIBRARIES} ${SIMGEAR_LIBRARIES}