- # note the order here affects the order Simgear libraries are
- # linked in, and hence ability to link when using a traditional
- # linker such as GNU ld on Linux
- set(comps
- environment
- nasal
- tsync
- bvh
- bucket
- io
- serial
- math
- props
- structure
- timing
- xml
- misc
- threads
- debug
- magvar
- )
-
- set(scene_comps
- ephem
- sky
- material
- tgdb
- model
- screen
- util
- sound)
-
- foreach(component ${comps})
- find_sg_component(${component} SIMGEAR_CORE_LIBRARIES)
- endforeach()
-
- foreach(component ${scene_comps})
- find_sg_component(${component} SIMGEAR_LIBRARIES)
- endforeach()
+ find_sg_library(SimGearCore SIMGEAR_CORE SIMGEAR_CORE_LIBRARIES)
+ find_sg_library(SimGearScene SIMGEAR_SCENE SIMGEAR_LIBRARIES)