From 255f948baef91278ed9fb030376ca40503ae4a35 Mon Sep 17 00:00:00 2001 From: "Alexander \"Ace\" Olofsson" Date: Sun, 30 Oct 2011 18:43:27 +0100 Subject: [PATCH] A small fix to add all the files and not just the first one CMake finds --- cmake/OpenMWMacros.cmake | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmake/OpenMWMacros.cmake b/cmake/OpenMWMacros.cmake index 8263763a2..4f363fb63 100644 --- a/cmake/OpenMWMacros.cmake +++ b/cmake/OpenMWMacros.cmake @@ -2,8 +2,11 @@ macro (add_openmw_dir dir) set (files) foreach (u ${ARGN}) -list (APPEND files "${dir}/${u}.*") -list (APPEND OPENMW_FILES "${dir}/${u}") +file (GLOB ALL RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${dir}/${u}.*") +foreach (f ${ALL}) +list (APPEND files "${f}") +list (APPEND OPENMW_FILES "${f}") +endforeach (f) endforeach (u) source_group ("apps\\openmw\\${dir}" FILES ${files}) endmacro (add_openmw_dir)