]> git.mxchange.org Git - flightgear.git/commitdiff
Enable build of fgpanel by default in cmake
authorTorsten Dreyer <Torsten@t3r.de>
Thu, 21 Jul 2011 13:46:29 +0000 (15:46 +0200)
committerTorsten Dreyer <Torsten@t3r.de>
Thu, 21 Jul 2011 13:46:29 +0000 (15:46 +0200)
CMakeLists.txt
utils/fgpanel/CMakeLists.txt

index 429f22ff3e3501d882eeea8191f89443ffceacb5..3f21c16453f0ebe32fc861f385017709d504d0cf 100644 (file)
@@ -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()
index 90dc2f2d9011d57cf320ccb943dc4868f274332c..65661273bd15ee96d2b3dee7bda2c17af1c8d896 100644 (file)
@@ -14,6 +14,7 @@ add_executable(fgpanel main.cxx
        panel_io.cxx)
 
 target_link_libraries(fgpanel 
+       -lrt
        ${PNG_LIBRARIES}
        ${GLUT_LIBRARIES}
        ${SIMGEAR_LIBRARIES}