cmake: fix sequence of (static) library dependencies
sgmath depends on sgprops, sgprops depends on sgstructure. Also, core libraries are enough for fgadmin.
This commit is contained in:
parent
90c5c9f87a
commit
b54defea52
5 changed files with 14 additions and 12 deletions
|
@ -173,7 +173,7 @@ find_package(Threads REQUIRED)
|
|||
find_package(OpenGL REQUIRED)
|
||||
find_package(OpenAL REQUIRED)
|
||||
find_package(ALUT REQUIRED)
|
||||
find_package(OpenSceneGraph 2.8.1 REQUIRED osgText osgSim osgDB osgParticle osgFX osgUtil osgViewer osgGA)
|
||||
find_package(OpenSceneGraph 3.0.0 REQUIRED osgText osgSim osgDB osgParticle osgFX osgUtil osgViewer osgGA)
|
||||
|
||||
if(ENABLE_FGADMIN)
|
||||
find_package(FLTK)
|
||||
|
|
|
@ -126,14 +126,15 @@ if(${SIMGEAR_LIBRARIES} STREQUAL "SIMGEAR_LIBRARIES-NOTFOUND")
|
|||
io
|
||||
serial
|
||||
sound
|
||||
structure
|
||||
math
|
||||
props
|
||||
structure
|
||||
xml
|
||||
misc
|
||||
threads
|
||||
debug
|
||||
magvar
|
||||
math)
|
||||
)
|
||||
|
||||
set(scene_comps
|
||||
ephem
|
||||
|
|
|
@ -6,7 +6,7 @@ add_executable(fgadmin fgadmin_funcs.cxx main.cxx untarka.c)
|
|||
add_dependencies(fgadmin FGAdminUI)
|
||||
|
||||
target_link_libraries(fgadmin FGAdminUI
|
||||
${SIMGEAR_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${PLIB_LIBRARIES}
|
||||
${FLTK_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
|
|
|
@ -22,7 +22,8 @@ if(GLUT_FOUND)
|
|||
panel.cxx
|
||||
panel.hxx
|
||||
panel_io.cxx
|
||||
panel_io.hxx)
|
||||
panel_io.hxx
|
||||
)
|
||||
|
||||
target_link_libraries(fgpanel
|
||||
${PNG_LIBRARIES}
|
||||
|
|
Loading…
Add table
Reference in a new issue