mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-13 02:53:46 +00:00
Windows: install libusb into examples directory using "Bundle" feature from CMake (Thanks to Glenn Ergeerts)
This commit is contained in:
@@ -21,6 +21,13 @@ FOREACH(source ${EXAMPLES-SOURCES})
|
||||
INSTALL(TARGETS ${source} RUNTIME DESTINATION bin COMPONENT examples)
|
||||
ENDFOREACH(source)
|
||||
|
||||
#install required libraries
|
||||
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)
|
||||
ENDIF(WIN32)
|
||||
|
||||
IF(NOT WIN32)
|
||||
# Manuals for the examples
|
||||
FILE(GLOB manuals "${CMAKE_CURRENT_SOURCE_DIR}/*.1")
|
||||
|
||||
Reference in New Issue
Block a user