2009-11-02 12:34:58 +01:00
|
|
|
SET(EXAMPLES-SOURCES nfc-list nfc-mfclassic nfc-mfultralight nfcip-initiator nfcip-target nfc-anticol nfc-emulate nfc-relay)
|
2009-10-06 12:01:18 +02:00
|
|
|
|
2009-11-04 13:03:49 +01:00
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../lib)
|
2009-10-06 12:01:18 +02:00
|
|
|
|
2009-12-01 14:26:34 +01:00
|
|
|
INCLUDE_DIRECTORIES(${LIBUSB_INCLUDE_DIRS} ${PCSC_INCLUDE_DIRS})
|
|
|
|
LINK_DIRECTORIES(${LIBUSB_LIBRARY_DIRS} ${PCSC_LIBRARY_DIRS})
|
|
|
|
|
2009-10-06 12:01:18 +02:00
|
|
|
# Examples
|
|
|
|
FOREACH(source ${EXAMPLES-SOURCES})
|
|
|
|
ADD_EXECUTABLE(${source} ${source}.c)
|
|
|
|
TARGET_LINK_LIBRARIES(${source} nfc)
|
|
|
|
INSTALL(TARGETS ${source} RUNTIME DESTINATION bin COMPONENT examples)
|
|
|
|
ENDFOREACH(source)
|
|
|
|
|
2010-03-23 11:00:48 +01:00
|
|
|
IF(NOT MSVC)
|
|
|
|
# Manuals for the examples
|
|
|
|
FILE(GLOB manuals "${CMAKE_CURRENT_SOURCE_DIR}/*.1")
|
|
|
|
INSTALL(FILES ${manuals} DESTINATION ${SHARE_INSTALL_PREFIX}/man/man1 COMPONENT manuals)
|
|
|
|
ENDIF(NOT MSVC)
|