aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-03 15:11:33 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-03 15:11:33 +0100
commit2e8e455644720437d32b0377a7a1697d96655727 (patch)
treeddf0b38c8d5ae681981fb8e99097711c510574ec /src
parent0dcef829862e01ab4272163db3b536c9b70076a0 (diff)
Change TARGET variable name and remove CMakeTools
helpers modules requirements Change-Id: Ifaa03b13671c62f877e391e7cd6f0ff0b40fd356 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 93b35c1..f4ce7f2 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -21,12 +21,9 @@ project(low-can-binding)
cmake_minimum_required(VERSION 3.3)
-# Include useful for CMakeTools VSCode extensions
-include(CMakeToolsHelpers REQUIRED)
-set(TARGET_DBG "root@192.168.1.206")
-
include(GNUInstallDirs)
+set(TARGET "root@192.168.1.206")
set(PROJECT_VERSION "0.1")
set(PROJECT_ICON "icon.png")
set(PROJECT_LIBDIR "libs")
@@ -121,6 +118,6 @@ add_custom_target(widget ALL DEPENDS ${PROJECT_NAME}.wgt)
#message(STATUS "Creation of ${PROJECT_NAME}.wgt package for AppFW")
###########################################################################
install(CODE "execute_process(
- COMMAND scp -r ${CMAKE_SOURCE_DIR} ${PROJECT_NAME}.wgt ${TARGET_DBG}:/tmp
- COMMAND ssh ${TARGET_DBG} \"/usr/bin/afm-util remove ${PROJECT_NAME}@${PROJECT_VERSION} && /usr/bin/afm-util install /tmp/${PROJECT_NAME}.wgt\")"
+ 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