Revision 02d89bbb
Added by Hamza Bourbouh about 8 years ago
regression_tests/modules/Lustre_compile.cmake | ||
---|---|---|
139 | 139 |
# VERSION FPHSA options not handled by CMake version < 2.8.2) |
140 | 140 |
# VERSION_VAR LUSTRE_COMPILER_VERSION) |
141 | 141 |
mark_as_advanced(LUSTRE_INCLUDE_DIR) |
142 |
|
|
143 |
|
|
144 |
#helpfull functions and macros |
|
145 |
MACRO(SUBDIRLIST result curdir REGEX_PREFIX) |
|
146 |
FILE(GLOB children RELATIVE ${curdir} ${curdir}/${REGEX_PREFIX}*) |
|
147 |
SET(dirlist "") |
|
148 |
FOREACH(child ${children}) |
|
149 |
IF(IS_DIRECTORY ${curdir}/${child}) |
|
150 |
LIST(APPEND dirlist ${child}) |
|
151 |
ENDIF() |
|
152 |
ENDFOREACH() |
|
153 |
SET(${result} ${dirlist}) |
|
154 |
ENDMACRO() |
|
155 |
|
|
156 |
MACRO(LUSTREFILES result dir) |
|
157 |
FILE(GLOB children ${dir} ${dir}/*.lus) |
|
158 |
SET(lustreFileslist "") |
|
159 |
FOREACH(child ${children}) |
|
160 |
IF(EXISTS ${child} AND NOT IS_DIRECTORY ${child}) |
|
161 |
LIST(APPEND lustreFileslist ${child}) |
|
162 |
ENDIF() |
|
163 |
ENDFOREACH() |
|
164 |
SET(${result} ${lustreFileslist}) |
|
165 |
ENDMACRO() |
|
166 |
|
|
167 |
|
|
168 |
function(JOIN VALUES GLUE OUTPUT) |
|
169 |
string (REGEX REPLACE "([^\\]|^);" "\\1${GLUE}" _TMP_STR "${VALUES}") |
|
170 |
string (REGEX REPLACE "[\\](.)" "\\1" _TMP_STR "${_TMP_STR}") #fixes escaping |
|
171 |
set (${OUTPUT} "${_TMP_STR}" PARENT_SCOPE) |
|
172 |
endfunction() |
|
173 |
|
Also available in: Unified diff
add automata folder to tests