diff options
author | Bjørn Mork <bjorn@mork.no> | 2019-02-15 14:24:57 +0100 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-04-10 16:05:27 +0200 |
commit | ff8d35615153086f4b89443e511907f10ff059de (patch) | |
tree | cba0a4492fdfb7d182c80dd35a08e1d7867d116b /CMakeLists.txt | |
parent | ccca03f52878888c85ddfea400b3cdefd9840190 (diff) |
mbim-proxy support
This adds support for the libmbim-glib "mbim-proxy", allowing umbim to access
a device under ModemManager control. The feature is mostly useful for debugging
and development purposes, and is therefore disabled by default.
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c210d6f..bc18c1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,9 @@ cmake_minimum_required(VERSION 2.6) PROJECT(umbim C) + +OPTION(PROXY OFF) + ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations) SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") @@ -13,6 +16,10 @@ IF(DEBUG) ADD_DEFINITIONS(-DDEBUG -g3) ENDIF() +IF(PROXY) + ADD_DEFINITIONS(-DLIBQMI_MBIM_PROXY) +ENDIF() + ADD_EXECUTABLE(umbim ${SOURCES}) TARGET_LINK_LIBRARIES(umbim ${LIBS}) |