From bd50c86cce2db519c6d981bc0acffc79828a3bcf Mon Sep 17 00:00:00 2001 From: Loïc Collignon Date: Thu, 9 Mar 2017 14:32:55 +0100 Subject: fixed CMakeLists.txt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I62069f71b53a7a0e2131ca92834a9a85995308a7 Signed-off-by: Loïc Collignon --- CMakeLists.txt | 21 +++++++++++++++++++++ src/CMakeLists.txt | 6 +----- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index febd4f0a..233ee695 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1 +1,22 @@ +########################################################################### +# Copyright 2016 IoT.bzh +# +# author: José Bollo +# author: Stéphane Desneux +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +########################################################################### + +cmake_minimum_required(VERSION 3.3) +project(low-can-binding) add_subdirectory(src) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 428f0a70..85a498fb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -17,10 +17,6 @@ # limitations under the License. ########################################################################### -project(low-can-binding) - -cmake_minimum_required(VERSION 3.3) - include(GNUInstallDirs) set(TARGET "root@192.168.1.206") @@ -123,4 +119,4 @@ add_custom_target(widget ALL DEPENDS ${PROJECT_NAME}.wgt) install(CODE "execute_process( COMMAND scp -r ${CMAKE_SOURCE_DIR} ${PROJECT_NAME}.wgt ${TARGET}:/tmp COMMAND ssh ${TARGET} \"/usr/bin/afm-util remove ${PROJECT_NAME}@${PROJECT_VERSION} && /usr/bin/afm-util install /tmp/${PROJECT_NAME}.wgt\")" - ) \ No newline at end of file + ) -- cgit 1.2.3-korg