jellyfin-media-player/CMakeLists.txt

64 lines
1.6 KiB
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
project(PlexMediaPlayer CXX C)
2016-03-29 07:41:11 +00:00
# we want this to be able to run clang-tidy
set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "" FORCE)
cmake_policy(SET CMP0020 NEW)
cmake_policy(SET CMP0017 NEW)
if (POLICY CMP0058)
cmake_policy(SET CMP0058 NEW)
endif()
option(OPENELEC "Make an OpenELEC build" OFF)
2016-03-29 07:41:11 +00:00
if(OPENELEC)
add_definitions(-DKONVERGO_OPENELEC=1)
Message(STATUS "Making an OpenELEC build")
endif(OPENELEC)
option(BUILD_TARGET "Destination target for the build" "")
2016-03-29 07:41:11 +00:00
if(BUILD_TARGET STREQUAL "RPI")
add_definitions(-DTARGET_RPI=1)
set(RPI_LIBS bcm_host)
Message(STATUS "Build for Raspberry PI target")
endif(BUILD_TARGET STREQUAL "RPI")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/")
set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME Core)
2016-02-08 15:45:27 +00:00
add_definitions(-DQS_LOG_LINE_NUMBERS)
include(utils)
include(CompilerFlags)
include(DependencyConfiguration)
include(QtConfiguration)
include(VersionConfiguration)
include(NameConfiguration)
include(PlayerConfiguration)
include(InputConfiguration)
include(FindBreakpad)
include(BreakpadSymbols)
2016-03-22 09:27:04 +00:00
include(ClangTidy)
if(APPLE)
include(AppleConfiguration)
elseif(WIN32)
include(Win32Configuration)
elseif(UNIX AND (NOT APPLE))
include(LinuxConfiguration)
endif(APPLE)
if (Qt5_POSITION_INDEPENDENT_CODE)
SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif(Qt5_POSITION_INDEPENDENT_CODE)
add_subdirectory(external)
add_subdirectory(src)
include(CPackConfiguration)
add_custom_target(install_app_bundle COMMAND ${CMAKE_COMMAND} -P cmake_install.cmake DEPENDS PlexMediaPlayer PMPHelper)