1
0
Fork 0

Try to take care of FLTK external dependencies on Linux

This commit is contained in:
Frederic Bouvier 2011-12-18 16:18:46 +01:00
parent c964d0e83e
commit dc95e5e84b
2 changed files with 9 additions and 0 deletions

View file

@ -195,6 +195,13 @@ find_package(OpenSceneGraph 3.0.0 REQUIRED osgText osgSim osgDB osgParticle osgF
if(ENABLE_FGADMIN)
find_package(FLTK)
if ( FLTK_FOUND )
set( CMAKE_REQUIRED_INCLUDES ${FLTK_INCLUDE_DIR} )
set( CMAKE_REQUIRED_LIBRARIES ${FLTK_LIBRARIES} ${X11_Xinerama_LIB} ${X11_Xft_LIB} )
endif ( FLTK_FOUND )
endif(ENABLE_FGADMIN)
if(ENABLE_LIBSVN)

View file

@ -10,6 +10,8 @@ target_link_libraries(fgadmin FGAdminUI
${PLIB_LIBRARIES}
${FLTK_LIBRARIES}
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
${X11_Xinerama_LIB}
${X11_Xft_LIB}
)
install(TARGETS fgadmin RUNTIME DESTINATION bin)