1
0
Fork 0

Enable build of fgpanel by default in cmake

This commit is contained in:
Torsten Dreyer 2011-07-21 15:46:29 +02:00
parent 1c8d8e7908
commit 8f0f67f668
2 changed files with 8 additions and 0 deletions

View 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(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(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(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") 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) set(FG_NDEBUG 1)
endif() endif()
if(WITH_FGPANEL)
message(STATUS "Will build fgpanel")
else()
message(STATUS "Will NOT build fgpanel")
endif()
if(SP_FDMS) if(SP_FDMS)
set(ENABLE_SP_FDM 1) set(ENABLE_SP_FDM 1)
endif() endif()

View file

@ -14,6 +14,7 @@ add_executable(fgpanel main.cxx
panel_io.cxx) panel_io.cxx)
target_link_libraries(fgpanel target_link_libraries(fgpanel
-lrt
${PNG_LIBRARIES} ${PNG_LIBRARIES}
${GLUT_LIBRARIES} ${GLUT_LIBRARIES}
${SIMGEAR_LIBRARIES} ${SIMGEAR_LIBRARIES}