Lines 1-26
Link Here
|
1 |
--- CMakeLists.txt.orig 2021-05-13 11:07:31 UTC |
1 |
--- CMakeLists.txt.orig 2021-11-13 11:33:58 UTC |
2 |
+++ CMakeLists.txt |
2 |
+++ CMakeLists.txt |
3 |
@@ -112,23 +112,6 @@ add_executable(headsetcontrol ${SOURCE_FILES}) |
3 |
@@ -118,21 +118,6 @@ target_link_libraries(headsetcontrol m ${HIDAPI_LIBRAR |
4 |
target_link_libraries(headsetcontrol m ${HIDAPI_LIBRARIES}) |
|
|
5 |
|
4 |
|
6 |
install(TARGETS headsetcontrol DESTINATION bin) |
5 |
install(TARGETS headsetcontrol DESTINATION bin) |
7 |
- |
6 |
|
8 |
-# install udev files on linux |
7 |
-# install udev files on linux |
9 |
-if(UNIX AND NOT APPLE) |
8 |
-if(UNIX AND NOT APPLE) |
10 |
- set (program_cmd headsetcontrol) |
9 |
- set(rules_file 70-headsets.rules) |
11 |
- set (program_arg "-u") |
10 |
- set(udev_rules_dir lib/udev/rules.d/ |
12 |
- set (program_output "/etc/udev/rules.d/70-headsets.rules") |
11 |
- CACHE PATH "Path to the directory where udev rules should be installed") |
13 |
- install( CODE |
12 |
- add_custom_command( |
14 |
- " |
13 |
- OUTPUT ${rules_file} |
15 |
- execute_process(COMMAND ${program_cmd} ${program_arg} |
14 |
- COMMAND headsetcontrol -u > ${rules_file} |
16 |
- OUTPUT_FILE ${program_output}) |
15 |
- DEPENDS headsetcontrol) |
17 |
- |
16 |
- add_custom_target(udevrules ALL DEPENDS ${rules_file}) |
18 |
- message(STATUS \"Installed udev rules to ${program_output}\") |
17 |
- install( |
19 |
- " |
18 |
- FILES ${CMAKE_CURRENT_BINARY_DIR}/${rules_file} |
20 |
- ) |
19 |
- DESTINATION ${udev_rules_dir}) |
21 |
-endif() |
20 |
-endif() |
22 |
- |
21 |
- |
23 |
- |
22 |
|
24 |
# ------------------------------------------------------------------------------ |
23 |
# ------------------------------------------------------------------------------ |
25 |
# Testing |
24 |
# Testing |
26 |
# ------------------------------------------------------------------------------ |
|
|