mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-16 04:23:45 +00:00
Windows: install libusb into examples directory using "Bundle" feature from CMake (Thanks to Glenn Ergeerts)
This commit is contained in:
11
cmake/FixBundle.cmake.in
Normal file
11
cmake/FixBundle.cmake.in
Normal file
@@ -0,0 +1,11 @@
|
||||
INCLUDE(BundleUtilities)
|
||||
|
||||
# set bundle to the full path of the executable already existing in the install tree
|
||||
SET(bundle "${CMAKE_INSTALL_PREFIX}/bin/nfc-list@CMAKE_EXECUTABLE_SUFFIX@")
|
||||
|
||||
# set other_libs to a list of additional libs that cannot be reached by dependency analysis
|
||||
SET(other_libs "")
|
||||
|
||||
SET(dirs "@LIBUSB_LIBRARY_DIR@")
|
||||
|
||||
fixup_bundle("${bundle}" "${other_libs}" "${dirs}")
|
||||
Reference in New Issue
Block a user