diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 8b3c47c..b08a6a6 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -41,6 +41,10 @@ IF(WIN32) INCLUDE(InstallRequiredSystemLibraries) CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/cmake/FixBundle.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/FixBundle.cmake @ONLY) INSTALL(SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/FixBundle.cmake) + + IF(${source} MATCHES "nfc-st25tb") + LIST(APPEND TARGETS ${CMAKE_CURRENT_SOURCE_DIR}/../contrib/win32/getopt.c) + ENDIF() ENDIF(WIN32) IF(NOT WIN32) diff --git a/examples/Makefile.am b/examples/Makefile.am index 8f45fad..089c7c8 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -65,8 +65,7 @@ nfc_mfsetuid_LDADD = $(top_builddir)/libnfc/libnfc.la \ $(top_builddir)/utils/libnfcutils.la nfc_st25tb_SOURCES = nfc-st25tb.c -nfc_st25tb_LDADD = $(top_builddir)/libnfc/libnfc.la \ - $(top_builddir)/utils/libnfcutils.la +nfc_st25tb_LDADD = $(top_builddir)/libnfc/libnfc.la pn53x_diagnose_SOURCES = pn53x-diagnose.c pn53x_diagnose_LDADD = $(top_builddir)/libnfc/libnfc.la \