Fixes CMake under GNU/Linux

This commit is contained in:
Romuald Conty 2013-01-31 16:04:47 +01:00
parent 3fff5985fc
commit c01b961be0

View file

@ -21,10 +21,12 @@ FOREACH(source ${UTILS-SOURCES})
LIST(APPEND TARGETS mifare) LIST(APPEND TARGETS mifare)
ENDIF((${source} MATCHES "nfc-mfultralight") OR (${source} MATCHES "nfc-mfclassic")) ENDIF((${source} MATCHES "nfc-mfultralight") OR (${source} MATCHES "nfc-mfclassic"))
IF(${source} MATCHES "nfc-scan-device") IF(WIN32)
LIST(APPEND TARGETS ../contrib/win32/nfc_win32) IF(${source} MATCHES "nfc-scan-device")
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../contrib/win32) LIST(APPEND TARGETS ../contrib/win32/nfc_win32)
ENDIF(${source} MATCHES "nfc-scan-device") INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../contrib/win32)
ENDIF(${source} MATCHES "nfc-scan-device")
ENDIF(WIN32)
ADD_EXECUTABLE(${source} ${TARGETS}) ADD_EXECUTABLE(${source} ${TARGETS})