summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2f735c1..0112754 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -88,6 +88,20 @@ add_custom_target(uninstall
)
########################################################################
+# 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
########################################################################
add_subdirectory(include)