forked from denisq/kaffeine5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
59 lines (47 loc) · 1.9 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
cmake_minimum_required(VERSION 2.8.12)
project(kaffeine)
find_package(ECM 0.0.11 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules")
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings)
include(FeatureSummary)
include(ECMInstallIcons)
include(ECMOptionalAddSubdirectory)
find_package(Qt5 REQUIRED COMPONENTS Widgets Network Sql)
find_package(KF5 REQUIRED COMPONENTS CoreAddons Solid KIO)
find_package(X11 REQUIRED)
find_package(VLC 1.2 REQUIRED)
find_package(KF5I18n REQUIRED)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${VLC_INCLUDE_DIRS}
${X11_Xscreensaver_INCLUDE_PATH})
add_definitions(${KDE4_DEFINITIONS})
#used to make porting easier
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0)
if(STRICT_BUILD)
add_definitions(-Werror -Weverything -Wno-packed -Wno-padded -Wno-sign-conversion -Wno-unreachable-code
-Wno-weak-vtables -ferror-limit=5
-isystem /usr/include/KDE
-isystem /usr/include/qt4/QtCore
-isystem /usr/include/qt4/QtGui
-isystem /usr/include/qt4/QtNetwork
-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII
-DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS)
endif(STRICT_BUILD)
# include(CheckIncludeFiles)
# check_include_files(${CMAKE_CURRENT_SOURCE_DIR}/include/frontend.h HAVE_DVB)
#
# if(NOT HAVE_DVB)
# MESSAGE(STATUS "Disabled features:\nDVB Digital television support for Linux\n")
set(HAVE_DVB 0)
# endif(NOT HAVE_DVB)
add_subdirectory(deviceactions)
add_subdirectory(dtvdaemon)
add_subdirectory(icons)
add_subdirectory(profiles)
add_subdirectory(src)
ecm_optional_add_subdirectory(po)
if(BUILD_TOOLS)
add_subdirectory(tools)
endif(BUILD_TOOLS)