From 0fb8543ddee1207963d965217261312ff098e04d Mon Sep 17 00:00:00 2001 From: Dimitri Stolnikov Date: Sun, 2 Sep 2012 22:15:55 +0200 Subject: install (and uninstall) udev rules file --- CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f735c1..0112754 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,6 +87,20 @@ add_custom_target(uninstall ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake ) +######################################################################## +# Install udev rules +######################################################################## +option(INSTALL_UDEV_RULES "Install udev rules for RTL-SDR" ON) +if (INSTALL_UDEV_RULES) + install ( + FILES rtl-sdr.rules + DESTINATION "/etc/udev/rules.d" + COMPONENT "udev" + ) +else (INSTALL_UDEV_RULES) + message (STATUS "Udev rules not being installed, install them with -DINSTALL_UDEV_RULES=ON") +endif (INSTALL_UDEV_RULES) + ######################################################################## # Add subdirectories ######################################################################## -- cgit v1.3.1