Take a look at this (HEADERS and SOURCES variables in particular)