Windows: install libusb into examples directory using "Bundle" feature from CMake (Thanks to Glenn Ergeerts)

This commit is contained in:
Romuald Conty 2011-04-20 13:18:38 +00:00
parent d86438db4e
commit 762f6fb1f3
4 changed files with 19 additions and 3 deletions

View file

@ -34,8 +34,6 @@ IF(WIN32)
# At compile time we need the .LIB file, we place it in the lib directory
INSTALL(TARGETS nfc ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT headers)
INSTALL(FILES ${LIBUSB_DLL} DESTINATION bin COMPONENT examples RENAME "libusb0.dll")
ELSE(WIN32)
INSTALL(TARGETS nfc LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT libraries)
ENDIF(WIN32)