From 875619ed4ee6bc0d19b0057c9ee60db3b258624a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 31 Jan 2011 21:17:33 +0100 Subject: [PATCH] add install targets --- .gitignore | 1 + CMakeLists.txt | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/.gitignore b/.gitignore index 8bd0afc..eb8eb29 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ ubus.sock listener ubusd ubus +install_manifest.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index e579297..11044cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,3 +16,12 @@ TARGET_LINK_LIBRARIES(cli ubus ubox) ADD_EXECUTABLE(listener listener.c) TARGET_LINK_LIBRARIES(listener ubus ubox) +SET(CMAKE_INSTALL_PREFIX /usr) + +INSTALL(TARGETS ubus cli + LIBRARY DESTINATION lib + RUNTIME DESTINATION bin +) +INSTALL(TARGETS ubusd + RUNTIME DESTINATION sbin +) -- 2.11.0