Last change
on this file since 2126 was
2125,
checked in by rgrieder, 16 years ago
|
Added CMake macro to more easily incude subfolders
|
File size:
444 bytes
|
Line | |
---|
1 | MACRO(ADD_SOURCE_FILES _directory _source_list _target_list) |
---|
2 | |
---|
3 | # Set the variable (_source_list) first |
---|
4 | INCLUDE(${_directory}/CMakeLists.txt) |
---|
5 | #MESSAGE(STATUS ${_directory}) |
---|
6 | #MESSAGE(STATUS "${_source_list}") |
---|
7 | #MESSAGE(STATUS "${${_source_list}}") |
---|
8 | |
---|
9 | FOREACH(_source_file ${${_source_list}}) |
---|
10 | LIST(APPEND ${_target_list} "${_directory}/${_source_file}") |
---|
11 | #MESSAGE(STATUS ${${_target_list}}) |
---|
12 | ENDFOREACH(_source_file) |
---|
13 | ENDMACRO(ADD_SOURCE_FILES) |
---|
Note: See
TracBrowser
for help on using the repository browser.