Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-01-31 22:23:34 +0300
committerFelix Fietkau <nbd@openwrt.org>2011-01-31 22:23:34 +0300
commitefd7c8c4df2b922aa9691ba2b679147d6fb7a18f (patch)
treee1b4881bed02df21a2f7e8d5a5c5a86e9ff66e4c /CMakeLists.txt
parent3da4427fb5c8a2914902d566feaad0faf313160a (diff)
convert to cmake
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..e307cd7
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,21 @@
+cmake_minimum_required(VERSION 2.8)
+
+PROJECT(ubox C)
+ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3)
+
+SET(SOURCES avl.c blob.c blobmsg.c hash.c uhtbl.c uloop.c)
+IF("${CMAKE_SYSTEM}" MATCHES "Linux")
+ SET(SOURCES ${SOURCES} unl.c)
+ENDIF("${CMAKE_SYSTEM}" MATCHES "Linux")
+
+ADD_LIBRARY(ubox SHARED ${SOURCES})
+
+SET(CMAKE_INSTALL_PREFIX /usr)
+
+FILE(GLOB headers *.h)
+INSTALL(FILES ${headers}
+ DESTINATION include/libubox
+)
+INSTALL(TARGETS ubox
+ LIBRARY DESTINATION lib
+)