openxc-utils : No send string but send array_object for signals
[apps/agl-service-can-low-level.git] / libs / CMakeLists.txt
index cd29ea8..6a16d32 100644 (file)
@@ -1,7 +1,7 @@
 ###########################################################################
-# Copyright 2015, 2016, 2017 IoT.bzh
+# Copyright 2015 - 2018 IoT.bzh
 #
-# author: Fulup Ar Foll <fulup@iot.bzh>
+# author: Romain Forlot <romain.forlot@iot.bzh>
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 ###########################################################################
 
 # 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
+project_subdirs_add()