From 07c1413c95338fd36df2ab82e8b420140db6d94d Mon Sep 17 00:00:00 2001 From: Davide Gerhard Date: Tue, 16 Apr 2019 14:52:08 +0200 Subject: [PATCH] install udev-rules only on linux --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 69f0e30f4..b2708e400 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -535,11 +535,13 @@ install(TARGETS sdrangelbench DESTINATION bin) #install(TARGETS sdrbase DESTINATION lib) #install files and directories +if (CMAKE_SYSTEM_NAME EQUAL "Linux") install(DIRECTORY udev-rules DESTINATION share/sdrangel) install(FILES udev-rules/install.sh DESTINATION share/sdrangel/udev-rules PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sdrbase.rcc DESTINATION bin) install(FILES desktop/sdrangel.desktop DESTINATION share/applications) install(FILES desktop/sdrangel_icon.png DESTINATION share/pixmaps) +endif() ##############################################################################