projects
/
project
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
659a98c
)
add install targets
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 31 Jan 2011 20:17:33 +0000
(21:17 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 31 Jan 2011 20:17:33 +0000
(21:17 +0100)
.gitignore
patch
|
blob
|
history
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/.gitignore
b/.gitignore
index
8bd0afc
..
eb8eb29
100644
(file)
--- a/
.gitignore
+++ b/
.gitignore
@@
-9,3
+9,4
@@
ubus.sock
listener
ubusd
ubus
listener
ubusd
ubus
+install_manifest.txt
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
e579297
..
11044cb
100644
(file)
--- 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)
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
+)