diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index a3f87d2..946703a 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -7,6 +7,7 @@ INCLUDE_DIRECTORIES(${LIBUSB_INCLUDE_DIRS} ${PCSC_INCLUDE_DIRS}) LINK_DIRECTORIES(${LIBUSB_LIBRARY_DIRS} ${PCSC_LIBRARY_DIRS}) ADD_LIBRARY(nfc-utils nfc-utils) +ADD_LIBRARY(mifare mifare) # Examples FOREACH(source ${EXAMPLES-SOURCES}) @@ -16,6 +17,9 @@ FOREACH(source ${EXAMPLES-SOURCES}) INSTALL(TARGETS ${source} RUNTIME DESTINATION bin COMPONENT examples) ENDFOREACH(source) +TARGET_LINK_LIBRARIES(nfc-mfclassic mifare) +TARGET_LINK_LIBRARIES(nfc-mfultralight mifare) + IF(NOT MSVC) # Manuals for the examples FILE(GLOB manuals "${CMAKE_CURRENT_SOURCE_DIR}/*.1")