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
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue