timmerk / libnfc

Automatically exported from code.google.com/p/libnfc
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Add cmake config files #275

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by julien.s...@gmail.com on 21 Mar 2014 at 1:30

Attachments:

GoogleCodeExporter commented 9 years ago
Here one single patch.

Original comment by julien.s...@gmail.com on 27 Jun 2014 at 6:44

Attachments: