stk-code_catmod/update_file_list.sh
undef-in-ed 6e148e2aaf CMake: mimic folder hierarchy with source_group for MSVC
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10973 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-15 12:41:52 +00:00

20 lines
529 B
Bash
Executable File

#!/bin/sh
DEST_FILE="sources.cmake"
echo "# Generated by $0. Do not edit this file manually." > $DEST_FILE
echo "set(STK_SOURCES" >> $DEST_FILE
find src \
-path 'src/bullet' -prune -o \
-path 'src/ide' -prune -o \
-path 'src/wiiuse' -prune -o \
-regex ".*\.cpp" -print | sort >> $DEST_FILE
echo ")" >> $DEST_FILE
echo "set(STK_HEADERS" >> $DEST_FILE
find src \
-path 'src/bullet' -prune -o \
-path 'src/ide' -prune -o \
-path 'src/wiiuse' -prune -o \
-regex ".*\.hpp" -print | sort >> $DEST_FILE
echo ")" >> $DEST_FILE