From 55763badae9118135126c4c623cd0c7f09183c09 Mon Sep 17 00:00:00 2001 From: Tomáš Chvátal Date: Sun, 21 Jun 2009 19:38:15 +0200 Subject: Use macro for sources addition. Fix typo in findzip. --- src/net/CMakeLists.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/net') diff --git a/src/net/CMakeLists.txt b/src/net/CMakeLists.txt index 6c8c7a1..2e93cef 100644 --- a/src/net/CMakeLists.txt +++ b/src/net/CMakeLists.txt @@ -3,10 +3,5 @@ ############################################################################### # 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 ) +MacroAddSources() ############################################################################### -- cgit v1.2.3