add install targets

This commit is contained in:
Felix Fietkau 2011-01-31 21:17:33 +01:00
parent 659a98c810
commit 875619ed4e
2 changed files with 10 additions and 0 deletions

1
.gitignore vendored
View file

@ -9,3 +9,4 @@ ubus.sock
listener
ubusd
ubus
install_manifest.txt

View file

@ -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
)