PROJECT(races C) SET(_FILES dragons.c illusion.c races.c zombies.c ) FOREACH(_FILE ${_FILES}) LIST(APPEND _SOURCES ${PROJECT_NAME}/${_FILE}) ENDFOREACH(_FILE) SET(RACES_SRC ${_SOURCES} PARENT_SCOPE)