summaryrefslogtreecommitdiff
path: root/src/audio
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2009-05-16 14:04:24 +0200
committerTomas Chvatal <scarabeus@gentoo.org>2009-05-16 14:04:24 +0200
commit52671935e3337cf0b76259964aa539a72869f486 (patch)
tree4fab0c161fe63952b73689c5733931e8552de92e /src/audio
parent556544095bb548f07f771e4e0bbfe97333e8ee82 (diff)
Update build system to include source files automaticaly.
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
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 )
+###############################################################################