-
-
Notifications
You must be signed in to change notification settings - Fork 334
/
CMakeLists.txt
59 lines (46 loc) · 1.45 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
project(PlexMediaPlayer CXX C)
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
cmake_policy(SET CMP0020 NEW)
if (POLICY CMP0058)
cmake_policy(SET CMP0058 NEW)
endif()
cmake_policy(SET CMP0017 NEW)
option(OPENELEC "Make an OpenELEC build" OFF)
if (OPENELEC)
add_definitions(-DKONVERGO_OPENELEC=1)
Message(STATUS "Making an OpenELEC build")
endif(OPENELEC)
option(BUILD_TARGET "Destination target for the build" "")
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)
add_definitions(-DQS_LOG_LINE_NUMBERS -DQHTTPSERVER_EXPORT)
include(DependencyConfiguration)
include(VersionConfiguration)
include(NameConfiguration)
include(utils)
include(QtConfiguration)
include(PlayerConfiguration)
include(InputConfiguration)
include(FindBreakpad)
include(BreakpadSymbols)
if(APPLE)
include(AppleConfiguration)
elseif(WIN32)
include(Win32Configuration)
elseif(UNIX AND (NOT APPLE))
include(LinuxConfiguration)
endif(APPLE)
if(CMAKE_COMPILER_IS_GNUCC)
include(GCCConfiguration)
endif(CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNINGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNINGS}")
add_subdirectory(external)
add_subdirectory(src)
include(CPackConfiguration)