From: Torsten Dreyer Date: Thu, 21 Jul 2011 13:46:29 +0000 (+0200) Subject: Enable build of fgpanel by default in cmake X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8f0f67f668e85db1213704b3815e3c8e98a68443;p=flightgear.git Enable build of fgpanel by default in cmake --- 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}