LinuxConfiguration.cmake 534 B

1234567891011121314151617181920
  1. find_package(X11)
  2. if(X11_FOUND AND X11_Xrandr_FOUND)
  3. include_directories(X11_X11_INCLUDE_PATH X11_Xrandr_INCLUDE_PATH)
  4. set(X11XRANDR_FOUND 1)
  5. add_definitions(-DUSE_X11XRANDR)
  6. else()
  7. set(X11_LIBRARIES "")
  8. set(X11_Xrandr_LIB "")
  9. endif()
  10. if(LINUX_X11POWER)
  11. add_definitions(-DUSE_X11POWER)
  12. Message(STATUS "Enabling X11/XDG screensaver management")
  13. else()
  14. add_definitions(-DLINUX_DBUS=1)
  15. Message(STATUS "Enabling D-Bus power management")
  16. endif()
  17. set(INSTALL_BIN_DIR bin)
  18. set(INSTALL_RESOURCE_DIR share/plexmediaplayer)