1
0
Fork 0
flightgear/CMakeModules/FlightGearComponent.cmake

20 lines
623 B
CMake
Raw Normal View History

macro(flightgear_component name sources)
2012-09-16 17:26:12 +00:00
set(fc ${name})
set(fh ${name})
foreach(s ${sources})
set_property(GLOBAL
APPEND PROPERTY FG_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/${s}")
2012-09-16 17:26:12 +00:00
set(fc "${fc}#${CMAKE_CURRENT_SOURCE_DIR}/${s}")
endforeach()
2012-09-16 17:26:12 +00:00
foreach(h ${ARGV2})
set_property(GLOBAL
APPEND PROPERTY FG_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/${h}")
set(fh "${fh}#${CMAKE_CURRENT_SOURCE_DIR}/${h}")
endforeach()
set_property(GLOBAL APPEND PROPERTY FG_GROUPS_C "${fc}@")
set_property(GLOBAL APPEND PROPERTY FG_GROUPS_H "${fh}@")
endmacro()