diff options
author | Loïc Collignon <loic.collignon@iot.bzh> | 2017-11-08 23:02:19 +0100 |
---|---|---|
committer | Loïc Collignon <loic.collignon@iot.bzh> | 2017-11-08 23:02:19 +0100 |
commit | 1ca9e57c1423899798103f9eb05ec53f5cd02dcf (patch) | |
tree | 7b2d09f6e72db3ca5204c67ee7142af74bb1c375 /src/CMakeLists.txt | |
parent | e9d9e65ca0f6a2750420473300db2081d186de94 (diff) |
added compilation option to enable or disable modulations to speed up the detection.
Change-Id: I14bd40f9fcc4ca526da8d1d15e836f7f722fc9c7
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0c9021c..ba35037 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -25,7 +25,40 @@ set(NFC_BINDING_SOURCES api.c nfc-binding.c) if (USE_LIBNFC) set(NFC_BINDING_SOURCES ${NFC_BINDING_SOURCES} libnfc_reader.c) add_definitions(-DUSE_LIBNFC=1) + + if(LIBNFC_POLL_ALL) + add_definitions(-DLIBNFC_POLL_ALL=1) + endif() + + if(LIBNFC_POLL_NMT_ISO14443A) + add_definitions(-DLIBNFC_POLL_NMT_ISO14443A=1) + endif() + + if(LIBNFC_POLL_NMT_ISOJEWEL) + add_definitions(-DLIBNFC_POLL_NMT_ISOJEWEL=1) + endif() + + if(LIBNFC_POLL_NMT_ISO14443B) + add_definitions(-DLIBNFC_POLL_NMT_ISO14443B=1) + endif() + + if(LIBNFC_POLL_NMT_ISO14443BI) + add_definitions(-DLIBNFC_POLL_NMT_ISO14443BI=1) + endif() + + if(LIBNFC_POLL_NMT_ISO14443B2SR) + add_definitions(-DLIBNFC_POLL_NMT_ISO14443B2SR=1) + endif() + + if(LIBNFC_POLL_NMT_ISO14443B2CT) + add_definitions(-DLIBNFC_POLL_NMT_ISO14443B2CT=1) + endif() + + if(LIBNFC_POLL_NMT_FELICA) + add_definitions(-DLIBNFC_POLL_NMT_FELICA=1) + endif() endif() + message(STATUS "libnfc enabled: ${USE_LIBNFC}") add_library(${TARGET_NAME} MODULE ${NFC_BINDING_SOURCES}) |