Fix build with CMake
- Fix library finding ('nfc' instead of 'libnfc');
- Generate config.h from template on non-win32 platforms;
- While here, include protection for config.h in several files.
This commit is contained in:
parent
358df7759a
commit
565ee18b8e
25 changed files with 94 additions and 24 deletions
|
|
@ -9,7 +9,7 @@ message("libnfc install dir: " ${LIBNFC_INSTALL_DIR})
|
|||
find_path(LIBNFC_INCLUDE_DIRS NAMES nfc/nfc.h PATHS ${LIBNFC_INSTALL_DIR}/include)
|
||||
message("libnfc include dir found: " ${LIBNFC_INCLUDE_DIRS})
|
||||
|
||||
find_library(LIBNFC_LIBRARIES libnfc PATHS ${LIBNFC_INSTALL_DIR}/lib)
|
||||
find_library(LIBNFC_LIBRARIES nfc PATHS ${LIBNFC_INSTALL_DIR}/lib)
|
||||
message("libnfc library found: " ${LIBNFC_LIBRARIES})
|
||||
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue