1
0
Fork 0

Try to fix cmake build for fgpanel without GLUT

This commit is contained in:
Torsten Dreyer 2011-07-21 23:42:45 +02:00
parent 8f0f67f668
commit dcde3a9350
2 changed files with 24 additions and 25 deletions

View file

@ -66,12 +66,6 @@ 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

@ -2,6 +2,8 @@
find_package(PNG REQUIRED) find_package(PNG REQUIRED)
find_package(OpenGL REQUIRED) find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED) find_package(GLUT REQUIRED)
if(GLUT_FOUND)
message(STATUS "found glut")
add_executable(fgpanel main.cxx add_executable(fgpanel main.cxx
FGGLApplication.cxx FGGLApplication.cxx
@ -24,3 +26,6 @@ target_link_libraries(fgpanel
) )
install(TARGETS fgpanel RUNTIME DESTINATION bin) install(TARGETS fgpanel RUNTIME DESTINATION bin)
else()
message(STATUS "glut NOT found, can't build fgpanel")
endif()