diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index b08a6a6..01a93c9 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -28,6 +28,11 @@ FOREACH(source ${EXAMPLES-SOURCES}) SET(RC_FILE_TYPE 0x00000001L) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/../contrib/win32/version.rc.in ${CMAKE_CURRENT_BINARY_DIR}/../windows/${source}.rc @ONLY) LIST(APPEND TARGETS ${CMAKE_CURRENT_BINARY_DIR}/../windows/${source}.rc) + + + IF(${source} MATCHES "nfc-st25tb") + LIST(APPEND TARGETS ${CMAKE_CURRENT_SOURCE_DIR}/../contrib/win32/getopt.c) + ENDIF() ENDIF(WIN32) ADD_EXECUTABLE(${source} ${TARGETS}) @@ -41,10 +46,6 @@ 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)