add install targets
authorFelix Fietkau <nbd@openwrt.org>
Mon, 31 Jan 2011 20:17:33 +0000 (21:17 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 31 Jan 2011 20:17:33 +0000 (21:17 +0100)
.gitignore
CMakeLists.txt

index 8bd0afc5e870abec0b34b7eee72c876e254a5e48..eb8eb29882b43e1c104a5b46d7ce897c16c1b9ea 100644 (file)
@@ -9,3 +9,4 @@ ubus.sock
 listener
 ubusd
 ubus
+install_manifest.txt
index e579297ef9401c21e25af58b0b6beba1feb98019..11044cb63b519236fcd0cc2641d7f99d91434510 100644 (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
+)