]> git.mxchange.org Git - flightgear.git/blob - CMakeModules/FlightGearComponent.cmake
Fixing launcher save/restore of settings.
[flightgear.git] / CMakeModules / FlightGearComponent.cmake
1
2 macro(flightgear_component name sources)
3     set(fc ${name})
4     set(fh ${name})
5     foreach(s ${sources})
6         set_property(GLOBAL
7             APPEND PROPERTY FG_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/${s}")
8         set(fc "${fc}#${CMAKE_CURRENT_SOURCE_DIR}/${s}")
9     endforeach()
10
11     foreach(h ${ARGV2})
12         set_property(GLOBAL
13             APPEND PROPERTY FG_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/${h}")
14         set(fh "${fh}#${CMAKE_CURRENT_SOURCE_DIR}/${h}")
15     endforeach()
16
17     set_property(GLOBAL APPEND PROPERTY FG_GROUPS_C "${fc}@")
18     set_property(GLOBAL APPEND PROPERTY FG_GROUPS_H "${fh}@")
19 endmacro()