Windows: install libusb into examples directory using "Bundle" feature from CMake (Thanks to Glenn Ergeerts)
This commit is contained in:
parent
d86438db4e
commit
762f6fb1f3
4 changed files with 19 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue