blob: d8e2ff740267bd4ff1473b3a13724dc8eb983843 (
plain)
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
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET(PKGNAME "org.tizen.message")
SET(CMAKE_SOURCE_COMMON_DIR "${CMAKE_SOURCE_DIR}/common")
SET(CMAKE_SOURCE_MAIN_DIR "${CMAKE_SOURCE_DIR}/main")
SET(CMAKE_SOURCE_THREAD_DIR "${CMAKE_SOURCE_DIR}/thread")
SET(CMAKE_SOURCE_BUBBLE_DIR "${CMAKE_SOURCE_DIR}/bubble")
SET(CMAKE_SOURCE_COMPOSER_DIR "${CMAKE_SOURCE_DIR}/composer")
SET(CMAKE_SOURCE_SETTING_DIR "${CMAKE_SOURCE_DIR}/setting")
SET(CMAKE_SOURCE_VIEWER_DIR "${CMAKE_SOURCE_DIR}/viewer")
SET(CMAKE_SOURCE_CLASS0_DIR "${CMAKE_SOURCE_DIR}/class0")
SET(CMAKE_SOURCE_DIALOG_DIR "${CMAKE_SOURCE_DIR}/dialog")
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(BINDIR "${PREFIX}/bin")
SET(RESDIR "${PREFIX}/res")
SET(DATADIR ${CMAKE_INSTALL_DATADIR})
SET(LOCALEDIR "${RESDIR}/locale")
SET(ICONDIR "${RESDIR}/icons/default/small")
SET(IMGDIR "${RESDIR}/images")
SET(EDJDIR "${RESDIR}/edje")
SET(UGDIR "/usr/ug/lib")
SET(LIBDIR "${PREFIX}/lib")
ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
ADD_DEFINITIONS("-DRESDIR=\"${RESDIR}\"")
ADD_DEFINITIONS("-DDATADIR=\"${DATADIR}\"")
ADD_DEFINITIONS("-DLOCALEDIR=\"${LOCALEDIR}\"")
ADD_DEFINITIONS("-DICONDIR=\"${ICONDIR}\"")
ADD_DEFINITIONS("-DIMGDIR=\"${IMGDIR}\"")
ADD_DEFINITIONS("-DEDJDIR=\"${EDJDIR}\"")
SET(CMAKE_LDFLAGS "-Wl,-zdefs" )
#Add your submodule directory name
ADD_SUBDIRECTORY(common)
ADD_SUBDIRECTORY(main)
ADD_SUBDIRECTORY(composer)
ADD_SUBDIRECTORY(setting)
ADD_SUBDIRECTORY(viewer)
ADD_SUBDIRECTORY(class0)
ADD_SUBDIRECTORY(dialog)
|