Move cmake files around.
Update issue 62 Looks like I missed the -p0 argument to patch. Can you please update and test? Thanks!
This commit is contained in:
parent
0abe2c9d66
commit
9e45b01802
3 changed files with 0 additions and 0 deletions
21
cmake/modules/FindLIBNFC.cmake
Normal file
21
cmake/modules/FindLIBNFC.cmake
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# $Id$
|
||||
# TODO locate using pkg-config for linux/bsd
|
||||
|
||||
#set(LIBNFC_INCLUDE_DIRS "")
|
||||
#set(LIBNFC_LIBRARIES "")
|
||||
set(LIBNFC_INSTALL_DIR $ENV{PROGRAMFILES}/libnfc CACHE PATH "libnfc installation directory")
|
||||
|
||||
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)
|
||||
message("libnfc library found: " ${LIBNFC_LIBRARIES})
|
||||
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBNFC DEFAULT_MSG
|
||||
LIBNFC_INCLUDE_DIRS
|
||||
LIBNFC_LIBRARIES
|
||||
)
|
||||
MARK_AS_ADVANCED(LIBNFC_INCLUDE_DIRS LIBNFC_LIBRARIES)
|
||||
Loading…
Add table
Add a link
Reference in a new issue