CMake: Make disable serial probe configurable in GUI.

CMake: Add sources of getopt tools to all builds except windows. (Thanks to Fkooman)
This commit is contained in:
Romuald Conty 2009-09-07 08:44:24 +00:00
parent 7e4512fa68
commit 36a4eb208f
2 changed files with 6 additions and 0 deletions

View file

@ -5,6 +5,7 @@ SET(VERSION "1.2.2")
SET(LIBNFC_VERBOSE_OUTPUT OFF CACHE BOOL "Verbose output of communication with the NFC chip")
SET(LIBNFC_LANG_C99 OFF CACHE BOOL "Use C99 language standard (GCC only)")
SET(LIBNFC_PCSC ON CACHE BOOL "Enable PC/SC support")
SET(LIBNFC_DISABLE_SERIAL_AUTOPROBE OFF CACHE BOOL "Disable serial autoprobe")
# Set some pkg-config variables
SET(prefix ${CMAKE_INSTALL_PREFIX})

View file

@ -1,6 +1,11 @@
SET(LIBRARY-SOURCES libnfc dev_pn531 dev_pn533 rs232 bitutils dev_arygon)
SET(TOOLS-SOURCES list mftool mfultool initiator target)
# disabled for now on Windows, due to lacking getopt
IF(NOT MSVC)
SET(TOOLS-SOURCES ${TOOLS-SOURCES} anticol emulate relay)
ENDIF(NOT MSVC)
IF(LIBNFC_PCSC)
ADD_DEFINITIONS("-DHAVE_PCSC_LITE=1")
SET(LIBRARY-SOURCES ${LIBRARY-SOURCES} "dev_acr122")