CMakeLists.txt 943 B

1234567891011121314151617181920212223
  1. include(${razer_SOURCE_DIR}/scripts/cmake.global)
  2. add_executable(razerd
  3. razerd.c)
  4. set_target_properties(razerd PROPERTIES COMPILE_FLAGS ${GENERIC_COMPILE_FLAGS})
  5. include_directories("${razer_SOURCE_DIR}/librazer")
  6. target_link_libraries(razerd razer)
  7. install(TARGETS razerd DESTINATION bin)
  8. if (NOT DEFINED ENV{RPM_BUILD_ROOT} AND NOT DEFINED ENV{RAZERCFG_PKG_BUILD})
  9. install_exec_cmd("systemctl --system daemon-reload"
  10. "If you use systemd, please reload systemd manually or reboot the system")
  11. install_exec_cmd("systemctl --system --force enable razerd.service"
  12. "If you use systemd, enable razerd.service manually")
  13. install_exec_cmd("systemctl --system start razerd.service"
  14. "If you use systemd, start razerd.service manually")
  15. install_exec_cmd("udevadm control --reload-rules"
  16. "Please reload udev manually or reboot the system")
  17. endif (NOT DEFINED ENV{RPM_BUILD_ROOT} AND NOT DEFINED ENV{RAZERCFG_PKG_BUILD})