Skip to content
Permalink
Browse files

Add cmake argument to specify udev rule path

  • Loading branch information...
tatokis committed May 18, 2019
1 parent b991781 commit 216edbc8fd0862dd0e148ec22ecbf18065bbd3f2
Showing with 2 additions and 1 deletion.
  1. +1 −0 CMakeLists.txt
  2. +1 −1 src/daemon/CMakeLists.txt
@@ -73,6 +73,7 @@ include(CMakeDependentOption)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" CACHE STRING "Where to put binaries after compilation.")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" CACHE STRING "Where to put libraries after compilation.")
set(UDEV_RULE_DIRECTORY "/lib/udev/rules.d" CACHE STRING "Where to install the udev rule.")

if (MACOS)
option(USE_BREW_QT5 "Use Homebrew package for Qt5." ON)
@@ -475,7 +475,7 @@ if (LINUX)
endif ()
install(
FILES "${CMAKE_SOURCE_DIR}/linux/udev/99-ckb-next-daemon.rules"
DESTINATION "/lib/udev/rules.d"
DESTINATION "${UDEV_RULE_DIRECTORY}"
PERMISSIONS
OWNER_READ OWNER_WRITE
GROUP_READ

0 comments on commit 216edbc

Please sign in to comment.
You can’t perform that action at this time.