forked from euroelessar/qutim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
58 lines (49 loc) · 2.26 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
cmake_minimum_required (VERSION 2.6 FATAL_ERROR)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
project(qutim)
if( MAEMO6 )
# FIXME
add_definitions( -DMEEGO_VERSION_MAJOR=1 -DMEEGO_VERSION_MINOR=2 -DMEEGO_VERSION_PATCH=0 -DMEEGO_EDITION=harmattan -DMEEGO_EDITION_HARMATTAN )
set(DEFAULT_DECLARATIVE_UI on )
else()
set(DEFAULT_DECLARATIVE_UI off )
endif()
option(DECLARATIVE_UI "Use declarative UI" ${DEFAULT_DECLARATIVE_UI})
set(QUTIM_BUNDLE_NAME qutim.app)
set(QUTIM_PATH "${CMAKE_CURRENT_SOURCE_DIR}/core" CACHE FILEPATH "Path to qutim sources")
set(QUTIM_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/core/libqutim/include" CACHE FILEPATH "Path to qutim headers")
set(QUTIM_LIBRARY libqutim CACHE FILEPATH "Path to qutim library")
set(QUTIM_PATH "${CMAKE_CURRENT_SOURCE_DIR}/core" CACHE FILEPATH "Path to qutim sources")
set(QUTIM_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/core/libqutim/include" CACHE FILEPATH "Path to qutim headers")
set(QUTIM_LIBRARY libqutim CACHE FILEPATH "Path to qutim library")
option(QUTIM_ENABLE_ALL_PLUGINS "Enable plugins by default" ON)
option(QUTIM_INSTALL_ICONS "Install icons from artwork dir" ON)
option(QUTIM_INSTALL_OXYGEN_THEME "Install built-in icon theme based on oxygen" OFF)
option(QUTIM_INSTALL_UBUNTU_THEME "Install ubuntu tray icon theme" OFF)
option(QUTIM_INSTALL_SOUND_THEME "Install built-in sound theme" OFF)
if( MAEMO5 )
set(QUTIM_INSTALL_OXYGEN_THEME ON CACHE INTERNAL "")
set(QUTIM_INSTALL_SOUND_THEME ON CACHE INTERNAL "")
endif()
find_package( Qt4 REQUIRED )
list(APPEND CMAKE_MODULE_PATH "${QUTIM_PATH}/cmake")
include(CPackOptions.cmake.in)
include(QutIMMacros)
set(QUTIM_ADDITIONAL_PATHS "protocols" "plugins")
set(QUTIM_ADDITIONAL_PATHS "${QUTIM_ADDITIONAL_PATHS}" CACHE INTERNAL "" FORCE)
#Disable "bad" plugins by default
set(BAD_PLUGINS_LIST QRCICONS AWN ANTIBOSS QMLCHAT PLUGMAN)
if(WIN32)
set(BAD_PLUGINS_LIST ${BAD_PLUGINS_LIST} DBUSAPI KOPETEEMOTICONSBACKEND DBUSNOTIFICATIONS)
endif()
foreach(plugin ${BAD_PLUGINS_LIST})
set(${plugin} off CACHE INTERNAL "")
endforeach()
add_subdirectory(core)
add_subdirectory(translations)
add_subdirectory(config)
add_subdirectory(deployment)
# ADD_CUSTOM_TARGET(uninstall
# "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")