Send signal when current theme changed
[platform/core/appfw/tizen-theme-manager.git] / CMakeLists.txt
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12)
2
3 PROJECT(tizen-theme-manager)
4
5 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
6 SET(BINDIR "${CMAKE_INSTALL_PREFIX}/bin")
7 SET(LIBDIR ${LIB_INSTALL_DIR})
8 SET(INCLUDEDIR "\${prefix}/include")
9
10 ## Compiler flags
11 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -Werror -ffunction-sections -fdata-sections -fmerge-all-constants -fPIE")
12
13 ## Linker flags
14 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed,--gc-sections -pie")
15
16 SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/")
17
18 ## Targets
19 SET(TARGET_THEME_PROVIDER "theme-provider")
20 SET(TARGET_TIZEN_THEME "tizen-theme")
21 SET(TARGET_TIZEN_THEME_API "capi-appfw-tizen-theme")
22 SET(TARGET_TIZEN_THEME_PLUGIN "tizen-theme-plugin")
23 SET(TARGET_TIZEN_THEME_PROVIDER "tizen-theme-provider")
24
25 ENABLE_TESTING()
26 SET(TARGET_TIZEN_THEME_UNIT_TEST "tizen-theme-unit-test")
27
28 INCLUDE(FindPkgConfig)
29 INCLUDE(ApplyPkgConfig)
30
31 ADD_DEFINITIONS("-DPROJECT_TAG=\"TIZEN_THEME_MANAGER\"")
32
33 ## Find all needed packages once
34 PKG_CHECK_MODULES(BUNDLE_DEPS REQUIRED bundle)
35 PKG_CHECK_MODULES(DLOG_DEPS REQUIRED dlog)
36 PKG_CHECK_MODULES(GLIB_DEPS REQUIRED glib-2.0)
37 PKG_CHECK_MODULES(GMOCK_DEPS REQUIRED gmock)
38 PKG_CHECK_MODULES(JSONCPP_DEPS REQUIRED jsoncpp)
39 PKG_CHECK_MODULES(PKGMGR_PARSER_DEPS REQUIRED pkgmgr-parser)
40 PKG_CHECK_MODULES(PKGMGR_INFO_DEPS REQUIRED pkgmgr-info)
41 PKG_CHECK_MODULES(PKGMGR_INSTALLER_DEPS REQUIRED pkgmgr-installer)
42 PKG_CHECK_MODULES(SQLITE_DEPS REQUIRED sqlite3)
43 PKG_CHECK_MODULES(GOBJECT_DEPS REQUIRED gobject-2.0)
44
45 ADD_SUBDIRECTORY(src)
46 ADD_SUBDIRECTORY(test)