Issue 275 in libnfc: Add cmake config files

5 views
Skip to first unread message

lib...@googlecode.com

unread,
Mar 21, 2014, 9:31:11 AM3/21/14
to libnfc...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 275 by julien.s...@gmail.com: Add cmake config files
http://code.google.com/p/libnfc/issues/detail?id=275

Hi,

Here's a patch to add cmake config files, this way you can detect libnfc
from another cmake project by just writing:

find_package(LibNFC NO_MODULE REQUIRED)
include(${LIBNFC_USE_FILE})
add_executable(ex1 nfc-anticol.c)
target_link_libraries(ex1 ${LIBNFC_LIBRARIES})

and by passing -DLibNFC_DIR=<prefix>/lib/cmake/libnfc to cmake if not in a
system dir.

just add the .cmake and .cmake.in in the cmake folder.

Regards,
J.

Attachments:
libnfc-cmake_config.patch 1.3 KB
LibNFCConfig.cmake.in 1.6 KB
UseLibNFC.cmake 203 bytes

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

lib...@googlecode.com

unread,
Jun 27, 2014, 2:44:26 PM6/27/14
to libnfc...@googlegroups.com

Comment #1 on issue 275 by julien.s...@gmail.com: Add cmake config files
http://code.google.com/p/libnfc/issues/detail?id=275

Here one single patch.


Attachments:
0001-Added-config-files.patch 6.5 KB
Reply all
Reply to author
Forward
0 new messages