Fix CMake build.

This commit is contained in:
Romain Tartiere 2010-08-24 09:29:59 +00:00
parent 23f84a4e6a
commit 00ad302e32

View file

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