9e45b01802
Update issue 62 Looks like I missed the -p0 argument to patch. Can you please update and test? Thanks!
21 lines
719 B
CMake
21 lines
719 B
CMake
# $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)
|