diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-14 12:09:47 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-14 12:09:47 +0200 |
commit | 044ef27d3667a114964549f89c63ab1ea6655877 (patch) | |
tree | dd7a042e7fa161de42b94bf8046383dc2e992547 /libs | |
parent | 2f47684220a5d398767ee35e0c2c949b27839197 (diff) |
Cleaning CMAke
Change-Id: I4efb09946474fadcf41cf9d04ad0f462ae4d0704
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'libs')
-rw-r--r-- | libs/CMakeLists.txt | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt index 30948ab..cd29ea8 100644 --- a/libs/CMakeLists.txt +++ b/libs/CMakeLists.txt @@ -17,15 +17,13 @@ ########################################################################### # Add target to project dependency list - - - fill_include_dir(${CMAKE_CURRENT_SOURCE_DIR}) - file(GLOB filelist "${CMAKE_CURRENT_SOURCE_DIR}/*") - foreach(filename ${filelist}) - if(IS_DIRECTORY ${filename}) - STRING(REGEX REPLACE "^.*\/(.*)$" "\\1" shortname ${filename}) - find_source_files(${filename}) - PROJECT_TARGET_ADD(${shortname}) - add_library(${shortname} STATIC ${sources_files}) - endif(IS_DIRECTORY ${filename}) - endforeach()
\ No newline at end of file +fill_include_dir(${CMAKE_CURRENT_SOURCE_DIR}) +file(GLOB filelist "${CMAKE_CURRENT_SOURCE_DIR}/*") +foreach(filename ${filelist}) + if(IS_DIRECTORY ${filename}) + STRING(REGEX REPLACE "^.*\/(.*)$" "\\1" shortname ${filename}) + find_source_files(${filename}) + PROJECT_TARGET_ADD(${shortname}) + add_library(${shortname} STATIC ${sources_files}) + endif(IS_DIRECTORY ${filename}) +endforeach()
\ No newline at end of file |