summaryrefslogtreecommitdiffstats
path: root/reference/etc
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-04 19:57:00 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-04 19:57:00 +0200
commit770647b595ff671ba7392e8a93b8155830863ab7 (patch)
treefcd8b8f3bc05dafe28e7877be0ccff834ea47aa5 /reference/etc
parent8cd16b7017264bc8865a1eb5d5d5e54c228b87ab (diff)
Remove unused dirty macros
Change-Id: I81fa1b72a91f56222de153c52d3d5ed9d084f1ea Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'reference/etc')
-rw-r--r--reference/etc/macros.cmake25
1 files changed, 0 insertions, 25 deletions
diff --git a/reference/etc/macros.cmake b/reference/etc/macros.cmake
index 6a389de..1a1154d 100644
--- a/reference/etc/macros.cmake
+++ b/reference/etc/macros.cmake
@@ -37,31 +37,6 @@ macro(defstr name value)
endmacro(defstr)
# Dumb macro to add each directory under a path. Make sure we grab all header files!
-macro(fill_include_dir path)
- file(GLOB_RECURSE dirlist LIST_DIRECTORIES true "${path}/*")
- foreach(filename ${dirlist})
- if(IS_DIRECTORY ${filename})
- include_directories(${filename})
- endif(IS_DIRECTORY ${filename})
- endforeach()
-endmacro(fill_include_dir)
-
-# Helper function to retrieve source files from a library repo.
-function(find_source_files path)
- file(GLOB_RECURSE cfiles "${path}/*.[c]")
- file(GLOB_RECURSE cppfiles "${path}/*.cpp")
- foreach(filename ${cfiles})
- if(NOT ${filename} MATCHES ".*([Tt]est|[Ee]xample|[Ss]ample).*")
- string(APPEND sources "${filename};")
- endif(NOT ${filename} MATCHES ".*([Tt]est|[Ee]xample|[Ss]ample).*")
- endforeach()
- foreach(filename ${cppfiles})
- if(NOT ${filename} MATCHES ".*([Tt]est|[Ee]xample|[Ss]ample).*")
- string(APPEND sources "${filename};")
- endif(NOT ${filename} MATCHES ".*([Tt]est|[Ee]xample|[Ss]ample).*")
- endforeach()
- set(sources_files ${sources} PARENT_SCOPE)
-endfunction(find_source_files)
# WGT packaging
macro(populate_widget)