summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/audio/CMakeLists.txt7
-rw-r--r--src/base/CMakeLists.txt7
-rw-r--r--src/client/CMakeLists.txt7
-rw-r--r--src/net/CMakeLists.txt7
-rw-r--r--src/screen/CMakeLists.txt7
-rw-r--r--src/server/CMakeLists.txt7
-rw-r--r--src/widget/CMakeLists.txt7
7 files changed, 7 insertions, 42 deletions
diff --git a/src/audio/CMakeLists.txt b/src/audio/CMakeLists.txt
index 6c8c7a1..2e93cef 100644
--- a/src/audio/CMakeLists.txt
+++ b/src/audio/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()
###############################################################################
diff --git a/src/base/CMakeLists.txt b/src/base/CMakeLists.txt
index 6c8c7a1..2e93cef 100644
--- a/src/base/CMakeLists.txt
+++ b/src/base/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()
###############################################################################
diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt
index 6c8c7a1..2e93cef 100644
--- a/src/client/CMakeLists.txt
+++ b/src/client/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()
###############################################################################
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()
###############################################################################
diff --git a/src/screen/CMakeLists.txt b/src/screen/CMakeLists.txt
index 6c8c7a1..2e93cef 100644
--- a/src/screen/CMakeLists.txt
+++ b/src/screen/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()
###############################################################################
diff --git a/src/server/CMakeLists.txt b/src/server/CMakeLists.txt
index 6c8c7a1..2e93cef 100644
--- a/src/server/CMakeLists.txt
+++ b/src/server/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()
###############################################################################
diff --git a/src/widget/CMakeLists.txt b/src/widget/CMakeLists.txt
index 6c8c7a1..2e93cef 100644
--- a/src/widget/CMakeLists.txt
+++ b/src/widget/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()
###############################################################################