mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 10:22:55 +00:00
fix checkresources and getresources not taking cpp files into account
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
8e4381e946
commit
2264ad1c35
2 changed files with 5 additions and 2 deletions
|
@ -15,7 +15,8 @@ for d in $(find $(pwd) $builddir/include $builddir/privateinclude -type d);do
|
|||
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"
|
||||
|
|
|
@ -8,7 +8,9 @@ for d in $(find $(pwd) $builddir/include $builddir/privateinclude -type d);do
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue