add CMake value to change udev rule destination

This commit is contained in:
Scott K Logan
2014-09-21 12:26:08 -05:00
parent 69c4997727
commit ea47fd4fbf

View File

@ -100,9 +100,13 @@ endif()
########################################################################
option(INSTALL_UDEV_RULES "Install udev rules for HackRF" OFF)
if (INSTALL_UDEV_RULES)
if (NOT UDEV_INSTALL_DIR)
set (UDEV_INSTALL_DIR "/etc/udev/rules.d")
endif (NOT UDEV_INSTALL_DIR)
install (
FILES 53-hackrf.rules
DESTINATION "/etc/udev/rules.d"
DESTINATION ${UDEV_INSTALL_DIR}
COMPONENT "udev"
)
else (INSTALL_UDEV_RULES)