From: Felix Fietkau Date: Mon, 31 Jan 2011 20:17:33 +0000 (+0100) Subject: add install targets X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=875619ed4ee6bc0d19b0057c9ee60db3b258624a;p=oweals%2Fubus.git add install targets --- 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 +)