47d88bcfa7
Always create only two SimGear libraries: SimGearCore and SimGearStatic, regardless of whether we're building static or shared. This requires an updated to FindSimGear.cmake module, for the static configuration.
23 lines
792 B
CMake
23 lines
792 B
CMake
|
|
macro(simgear_component_common name includePath sourcesList sources headers)
|
|
foreach(s ${sources})
|
|
set_property(GLOBAL
|
|
APPEND PROPERTY ${sourcesList} "${CMAKE_CURRENT_SOURCE_DIR}/${s}")
|
|
endforeach()
|
|
|
|
foreach(h ${headers})
|
|
set_property(GLOBAL
|
|
APPEND PROPERTY PUBLIC_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/${h}")
|
|
endforeach()
|
|
|
|
install (FILES ${headers} DESTINATION include/simgear/${includePath})
|
|
endmacro()
|
|
|
|
function(simgear_component name includePath sources headers)
|
|
simgear_component_common(${name} ${includePath} CORE_SOURCES "${sources}" "${headers}")
|
|
endfunction()
|
|
|
|
function(simgear_scene_component name includePath sources headers)
|
|
simgear_component_common(${name} ${includePath} SCENE_SOURCES "${sources}" "${headers}")
|
|
endfunction()
|