2 macro(simgear_component_common name includePath sourcesList sources headers)
7 APPEND PROPERTY ${sourcesList} "${CMAKE_CURRENT_SOURCE_DIR}/${s}")
12 APPEND PROPERTY PUBLIC_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/${h}")
16 set(libName "sg${name}")
17 add_library(${libName} STATIC ${sources} ${headers})
19 install (TARGETS ${libName} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
22 install (FILES ${headers} DESTINATION include/simgear/${includePath})
25 function(simgear_component name includePath sources headers)
26 simgear_component_common(${name} ${includePath} CORE_SOURCES "${sources}" "${headers}")
29 function(simgear_scene_component name includePath sources headers)
30 simgear_component_common(${name} ${includePath} SCENE_SOURCES "${sources}" "${headers}")