From c924e5e00c49e180c3f88f86ca8dbbb62a54b975 Mon Sep 17 00:00:00 2001 From: Benjamin DELPY Date: Sun, 13 Jun 2021 22:14:52 +0200 Subject: [PATCH] Fix contrib code for Win32 example --- examples/CMakeLists.txt | 4 ++++ examples/Makefile.am | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) 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 \