diff options
author | John Crispin <blogic@openwrt.org> | 2014-08-14 15:32:11 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-08-21 06:25:20 +0200 |
commit | b82f187ab204a56f5ed7cd6d4de64bfdc07a1a74 (patch) | |
tree | 9a95cbec142b3ebd754e66e40fd5b34edcc5ee84 /CMakeLists.txt |
initial import
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..c210d6f --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,22 @@ +cmake_minimum_required(VERSION 2.6) + +PROJECT(umbim C) +ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations) + +SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") + +SET(SOURCES cli.c mbim-enum.c mbim-dev.c mbim-msg.c ) + +SET(LIBS ubox) + +IF(DEBUG) + ADD_DEFINITIONS(-DDEBUG -g3) +ENDIF() + +ADD_EXECUTABLE(umbim ${SOURCES}) + +TARGET_LINK_LIBRARIES(umbim ${LIBS}) + +INSTALL(TARGETS umbim + RUNTIME DESTINATION sbin +) |