LinuxConfiguration.cmake 663 B

1234567891011121314151617181920212223242526
  1. include(GNUInstallDirs)
  2. find_package(X11)
  3. if(X11_FOUND AND X11_Xrandr_FOUND)
  4. include_directories(X11_X11_INCLUDE_PATH X11_Xrandr_INCLUDE_PATH)
  5. set(X11XRANDR_FOUND 1)
  6. add_definitions(-DUSE_X11XRANDR)
  7. else()
  8. set(X11_LIBRARIES "")
  9. set(X11_Xrandr_LIB "")
  10. endif()
  11. if(LINUX_X11POWER)
  12. add_definitions(-DUSE_X11POWER)
  13. Message(STATUS "Enabling X11/XDG screensaver management")
  14. else()
  15. add_definitions(-DLINUX_DBUS=1)
  16. Message(STATUS "Enabling D-Bus power management")
  17. endif()
  18. set(INSTALL_BIN_DIR ${CMAKE_INSTALL_BINDIR})
  19. set(INSTALL_RESOURCE_DIR ${CMAKE_INSTALL_DATADIR}/jellyfinmediaplayer)
  20. if(NOT OPENELEC)
  21. include(InstallLinuxDesktopFile)
  22. endif()