mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-12 10:33:47 +00:00
Add CMake configure option to not compile PC/SC support (defaults ON).
Sync variables in CMake file with current pkg-config file variables.
This commit is contained in:
@@ -4,19 +4,25 @@ 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 some pkg-config variables
|
||||
SET(prefix ${CMAKE_INSTALL_PREFIX})
|
||||
SET(exec_prefix ${CMAKE_INSTALL_PREFIX})
|
||||
SET(PACKAGE "libnfc")
|
||||
|
||||
IF(DEFINED CMAKE_INSTALL_LIBDIR)
|
||||
SET(PKG_LIBDIR ${CMAKE_INSTALL_LIBDIR})
|
||||
SET(libdir ${CMAKE_INSTALL_LIBDIR})
|
||||
ELSE(DEFINED CMAKE_INSTALL_LIBDIR)
|
||||
SET(CMAKE_INSTALL_LIBDIR lib)
|
||||
SET(PKG_LIBDIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
|
||||
SET(libdir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
|
||||
ENDIF(DEFINED CMAKE_INSTALL_LIBDIR)
|
||||
|
||||
IF(DEFINED INCLUDE_INSTALL_DIR)
|
||||
SET(PKG_INCLUDE_DIR ${INCLUDE_INSTALL_DIR})
|
||||
SET(includedir ${INCLUDE_INSTALL_DIR})
|
||||
ELSE(DEFINED INCLUDE_INSTALL_DIR)
|
||||
SET(INCLUDE_INSTALL_DIR include)
|
||||
SET(PKG_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/${INCLUDE_INSTALL_DIR})
|
||||
SET(includedir ${CMAKE_INSTALL_PREFIX}/${INCLUDE_INSTALL_DIR})
|
||||
ENDIF(DEFINED INCLUDE_INSTALL_DIR)
|
||||
|
||||
IF(NOT DEFINED SHARE_INSTALL_PREFIX)
|
||||
|
||||
Reference in New Issue
Block a user