1
0
Fork 0

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:
ThorstenB 2011-11-26 16:41:35 +01:00
parent 90c5c9f87a
commit b54defea52
5 changed files with 14 additions and 12 deletions

View file

@ -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)
@ -298,7 +298,7 @@ add_subdirectory(utils)
add_subdirectory(man)
set (INSTALL_DOCS
README
README
README.OpenAL
README.plib
README.OSG

View file

@ -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
@ -146,7 +147,7 @@ if(${SIMGEAR_LIBRARIES} STREQUAL "SIMGEAR_LIBRARIES-NOTFOUND")
foreach(component ${comps})
find_sg_component(${component} SIMGEAR_CORE_LIBRARIES)
endforeach()
foreach(component ${scene_comps})
find_sg_component(${component} SIMGEAR_LIBRARIES)
endforeach()

View file

@ -16,8 +16,8 @@ foreach( mylibfolder
Instrumentation
Model
MultiPlayer
AIModel
Navaids
AIModel
Navaids
Network
Scenery
Scripting

View file

@ -6,10 +6,10 @@ 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}
)
install(TARGETS fgadmin RUNTIME DESTINATION bin)

View file

@ -6,7 +6,7 @@ if(GLUT_FOUND)
message(STATUS "found glut")
add_executable(fgpanel main.cxx
ApplicationProperties.hxx
ApplicationProperties.hxx
FGGLApplication.cxx
FGGLApplication.hxx
FGPanelApplication.cxx
@ -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}
@ -31,7 +32,7 @@ if(GLUT_FOUND)
${OPENGL_LIBRARIES}
${PLIB_LIBRARIES}
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
)
)
install(TARGETS fgpanel RUNTIME DESTINATION bin)
else()