diff options
| author | Tomas Chvatal <scarabeus@gentoo.org> | 2009-05-16 14:04:24 +0200 |
|---|---|---|
| committer | Tomas Chvatal <scarabeus@gentoo.org> | 2009-05-16 14:04:24 +0200 |
| commit | 52671935e3337cf0b76259964aa539a72869f486 (patch) | |
| tree | 4fab0c161fe63952b73689c5733931e8552de92e /src/client | |
| parent | 556544095bb548f07f771e4e0bbfe97333e8ee82 (diff) | |
Update build system to include source files automaticaly.
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt new file mode 100644 index 0000000..6c8c7a1 --- /dev/null +++ b/src/client/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 ) +############################################################################### |