aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-10-18 18:56:42 +0200
committerMauro Sardara <msardara@cisco.com>2019-10-21 15:08:26 +0200
commit57d2c1c0526c04307bbb09aadf502a6a36d6abd3 (patch)
tree20c1a6b4498bf5ef96bb4db6c9d8d141d2ea5032 /hicn-light
parent306b098c350771c9497219694f82c090634eb974 (diff)
[HICN-340] Install hicn-light service file.
Change-Id: I102d16327d74f0c69e88003045de6450aae32923 Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'hicn-light')
-rw-r--r--hicn-light/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/hicn-light/CMakeLists.txt b/hicn-light/CMakeLists.txt
index 829c1d1f3..a632380fc 100644
--- a/hicn-light/CMakeLists.txt
+++ b/hicn-light/CMakeLists.txt
@@ -71,7 +71,7 @@ else()
endif ()
endif()
-include( Packaging )
+include(Packaging)
find_package(Threads REQUIRED)
@@ -107,3 +107,10 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
endif()
add_subdirectory(src/hicn)
+
+# Install service file in linux systems
+include(ServiceScript)
+install_service_script(
+ ${CMAKE_CURRENT_SOURCE_DIR}/config/hicn-light.service
+ COMPONENT ${HICN_LIGHT}
+) \ No newline at end of file