From 52671935e3337cf0b76259964aa539a72869f486 Mon Sep 17 00:00:00 2001 From: Tomas Chvatal Date: Sat, 16 May 2009 14:04:24 +0200 Subject: Update build system to include source files automaticaly. --- src/audio/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/audio/CMakeLists.txt (limited to 'src/audio') diff --git a/src/audio/CMakeLists.txt b/src/audio/CMakeLists.txt new file mode 100644 index 0000000..6c8c7a1 --- /dev/null +++ b/src/audio/CMakeLists.txt @@ -0,0 +1,12 @@ +############################################################################### +# tuxanci/src/*/CMakeLists.txt +############################################################################### +# Generate source_code files from .c files we find in directory +############################################################################### +FILE ( GLOB src ${fn}/*.c ) +FOREACH ( fle ${src} ) + GET_FILENAME_COMPONENT ( fnp ${fle} NAME_WE ) + GET_FILENAME_COMPONENT ( pth ${fle} PATH ) + SET ( SRC_${fn} ${SRC_${fn}} ${pth}/${fnp} ) +ENDFOREACH ( fle ) +############################################################################### -- cgit v1.2.3