Try to take care of FLTK external dependencies on Linux
This commit is contained in:
parent
c964d0e83e
commit
dc95e5e84b
2 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue