Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
autoinc+=" -I$d"
done
-allfiles="$(find -iname '*.cpp' -o -iname '*.h' -printf '%P\n')"
+allfiles="$(find -iname '*.cpp' -printf '%P\n')"
+allfiles+="$(find -iname '*.h' -printf '%P\n')"
for i in $allfiles;do
if [ -n "$(moc -nw $i $autoinc)" ];then
found="no"
autoinc+=" -I$d"
done
-for i in $(find -iname '*.cpp' -o -iname '*.h' -printf '%P\n');do
+allfiles="$(find -iname '*.cpp' -printf '%P\n')"
+allfiles+="$(find -iname '*.h' -printf '%P\n')"
+for i in $allfiles;do
if [ -n "$(moc -nw $i $autoinc)" ];then
echo ' ${CMAKE_CURRENT_SOURCE_DIR}/'$i
fi