2011-10-22 11:55:06 +00:00
|
|
|
|
|
|
|
macro (add_openmw_dir dir)
|
|
|
|
set (files)
|
|
|
|
foreach (u ${ARGN})
|
2012-01-28 13:16:25 +00:00
|
|
|
file (GLOB ALL ${CMAKE_CURRENT_SOURCE_DIR} "${dir}/${u}.[ch]pp")
|
2011-10-30 17:43:27 +00:00
|
|
|
foreach (f ${ALL})
|
|
|
|
list (APPEND files "${f}")
|
|
|
|
list (APPEND OPENMW_FILES "${f}")
|
|
|
|
endforeach (f)
|
2011-10-22 11:55:06 +00:00
|
|
|
endforeach (u)
|
2011-10-22 14:46:28 +00:00
|
|
|
source_group ("apps\\openmw\\${dir}" FILES ${files})
|
2011-10-22 11:55:06 +00:00
|
|
|
endmacro (add_openmw_dir)
|
2011-11-06 08:30:15 +00:00
|
|
|
|
|
|
|
macro (add_component_dir dir)
|
|
|
|
set (files)
|
|
|
|
foreach (u ${ARGN})
|
2012-01-28 13:16:25 +00:00
|
|
|
file (GLOB ALL ${CMAKE_CURRENT_SOURCE_DIR} "${dir}/${u}.[ch]pp")
|
2011-11-06 08:30:15 +00:00
|
|
|
foreach (f ${ALL})
|
|
|
|
list (APPEND files "${f}")
|
|
|
|
list (APPEND COMPONENT_FILES "${f}")
|
|
|
|
endforeach (f)
|
|
|
|
endforeach (u)
|
|
|
|
source_group ("components\\${dir}" FILES ${files})
|
|
|
|
endmacro (add_component_dir)
|