summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 9dc9a609ed7a99bda148c525ac67c9c22575c5ba (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
#
# Copyright 2012  Samsung Electronics Co., Ltd
#
# Licensed under the Flora License, Version 1.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.tizenopensource.org/license
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(browser CXX)

SET(SRCS
	src/browser-class.cpp
	src/browser-window.cpp
	src/browser-utility.cpp
	src/browser-main.cpp
	src/browser-common-view.cpp
	src/browser-data-manager.cpp
	src/browser-policy-client/browser-policy-decision-maker.cpp
	src/browser-extension/browser-geolocation.cpp
	src/browser-extension/browser-find-word.cpp
	src/browser-extension/browser-scissorbox-view.cpp
	src/browser-view/browser-view.cpp
	src/browser-view/browser-context-menu.cpp
	src/browser-multi-window/browser-multi-window-view.cpp
	src/data-network/browser-network-manager.cpp
	src/browser-bookmark/browser-bookmark-view.cpp
	src/browser-bookmark/browser-add-to-bookmark-view.cpp
	src/browser-bookmark/browser-new-folder-view.cpp
	src/browser-bookmark/browser-select-folder-view.cpp
	src/browser-history/browser-history-layout.cpp
	src/database/browser-bookmark-db.cpp
	src/database/browser-user-agent-db.cpp
	src/database/browser-history-db.cpp
	src/database/browser-geolocation-db.cpp
	src/browser-settings/browser-settings-class.cpp
	src/browser-settings/browser-settings-main-view.cpp
	src/browser-settings/browser-settings-edit-homepage-view.cpp
	src/browser-settings/browser-settings-clear-data-view.cpp
	src/browser-settings/browser-settings-website-setting.cpp
	src/scissorbox/scissorbox.cpp
)

IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
	SET(CMAKE_BUILD_TYPE "Release")
ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "")
MESSAGE("Build type: ${CMAKE_BUILD_TYPE}")

INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/include)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/database)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/data-network)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/browser-bookmark)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/browser-view)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/most-visited-sites)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/browser-multi-window)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/browser-history)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/browser-settings)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/browser-policy-client)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/browser-extension)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/scissorbox)

# set pkg-config modules
INCLUDE(FindPkgConfig)
pkg_check_modules(pkgs REQUIRED 
		eina ecore evas ecore-evas edbus elementary
		dlog db-util utilX ui-gadget-1 tapi
		secure-storage libsoup-2.4 libxml-2.0 libssl capi-location-manager capi-system-haptic devman
		accounts-svc ecore-input ecore-imf edje cairo ecore-x ewebkit2 appsvc capi-appfw-application
		capi-appfw-app-manager capi-web-url-download shortcut syspopup-caller capi-network-connection pkgmgr
		vconf-internal-keys
		capi-system-device
		capi-system-sensor
)

FIND_LIBRARY(LIB_GNUTLS gnutls)
FOREACH(flag ${pkgs_CFLAGS})
	SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)

# set extra defines
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(BINDIR "${PREFIX}/bin")
SET(RESDIR "${PREFIX}/res")
SET(DATADIR "${PREFIX}/data")
# res (read-only)
SET(EDJE_DIR "${RESDIR}/edje/")
SET(LOCALE_DIR "${RESDIR}/locale/")
SET(IMAGES_DIR "${RESDIR}/images/")
SET(HTML_DIR "${RESDIR}/html/")
SET(ICON_DIR "/opt/share/icons/default/small/")
# data
SET(XML_DIR "${DATADIR}/xml/")
SET(OPML_DIR "${DATADIR}/opml/")
SET(DATABASE_DIR "${DATADIR}/db/")
SET(SCREENSHOTS_DIR "${DATADIR}/screenshots/")
SET(CERTIFICATES_TMP_FILE "${DATADIR}/certificates.crt")
SET(WEBKIT_SOUP_CACHE_DIR "${DATADIR}/cache/")
# other defines
SET(CERTIFICATES_DIR "/opt/etc/ssl/certs/")
SET(DATABASENAME ".browser.db")
SET(HISTORY_DATABASENAME ".browser-history.db")
SET(CREDENTIAL_DATABASENAME ".browser-credential.db")
SET(MOST_VISITED_DATABASENAME ".browser-mostvisited.db")
SET(COOKIES_DATABASENAME ".browser-cookies.db")
SET(DESKTOP_DIR "/opt/share/applications")
ADD_DEFINITIONS(
		-DPROJECT_NAME=\"${PROJECT_NAME}\"
		-DDATABASENAME=\"${DATABASENAME}\"
		-DHISTORY_DATABASENAME=\"${HISTORY_DATABASENAME}\"
		-DCREDENTIAL_DATABASENAME=\"${CREDENTIAL_DATABASENAME}\"
		-DSPEEDDIAL_DATABASENAME=\"${SPEEDDIAL_DATABASENAME}\"
		-DCOOKIES_DATABASENAME=\"${COOKIES_DATABASENAME}\"
		-DEDJE_DIR=\"${EDJE_DIR}\"
		-DLOCALEDIR=\"${LOCALE_DIR}\"
		-DIMAGES_DIR=\"${IMAGES_DIR}\"
		-DSCREENSHOTS_DIR=\"${SCREENSHOTS_DIR}\"
		-DHTML_DIR=\"${HTML_DIR}\"
		-DXML_DIR=\"${XML_DIR}\"
		-DOPML_DIR=\"${OPML_DIR}\"
		-DCERTIFICATES_DIR=\"${CERTIFICATES_DIR}\"
		-DCERTIFICATES_TMP_FILE=\"${CERTIFICATES_TMP_FILE}\"
		-DDATABASE_DIR=\"${DATABASE_DIR}\"
		-DWEBKIT_SOUP_CACHE_DIR=\"${WEBKIT_SOUP_CACHE_DIR}\"
		-DLOG_TAG=\"org.tizen.browser\"
		-D__BUILD__
)

# Feature definitions
ADD_DEFINITIONS("-DBROWSER_SCROLLER_BOUNCING")
ADD_DEFINITIONS("-DSUPPORT_HLS")

# Feature definitions - Must be activated on the Tizen public
ADD_DEFINITIONS("-DTIZEN_PUBLIC")
ADD_DEFINITIONS("-DZOOM_BUTTON")
ADD_DEFINITIONS("-DHORIZONTAL_UI")
ADD_DEFINITIONS("-DGENLIST_SWEEP")
SET (USER_AGENT_VIEW ON)
IF (USER_AGENT_VIEW)
        ADD_DEFINITIONS("-DUSER_AGENT_VIEW")
        LIST(APPEND SRCS
                src/browser-settings/browser-settings-user-agent-view.cpp
        )
ENDIF ()
SET (FEATURE_MOST_VISITED_LIST ON)
IF (FEATURE_MOST_VISITED_LIST)
        ADD_DEFINITIONS("-DFEATURE_MOST_VISITED_SITES")
        LIST(APPEND SRCS
		src/most-visited-sites/most-visited-sites.cpp
                src/most-visited-sites/add-to-most-visited-sites-view.cpp
		src/database/most-visited-sites-db.cpp
        )
ENDIF ()
# set flags
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} -fPIC")
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g -fpie")
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2 -fpie")

FIND_PROGRAM(UNAME NAMES uname)
EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH")
IF("${ARCH}" STREQUAL "arm")
	ADD_DEFINITIONS("-D_TARGET")
	MESSAGE("add -D_TARGET")
    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpie")
    #SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mabi=aapcs-linux -march=armv7-a -msoft-float")
    SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mabi=aapcs-linux -mfpu=vfp -mfloat-abi=softfp")
    SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
ENDIF("${ARCH}" STREQUAL "arm")

SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed -Wl -pie,--hash-style=both")

# real make??
ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} ${LIB_GNUTLS})
#TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} ewebkit2)

# browser-define.edj
ADD_CUSTOM_TARGET(browser-define.edj
	COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images
	${CMAKE_SOURCE_DIR}/edc/browser-define.edc
	${CMAKE_BINARY_DIR}/edc/browser-define.edj
	DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-define.edc
	)
ADD_DEPENDENCIES(${PROJECT_NAME} browser-define.edj)

# browser-view-progressbar.edj
ADD_CUSTOM_TARGET(browser-view-progressbar.edj
        COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images
        ${CMAKE_SOURCE_DIR}/edc/browser-view-progressbar.edc
        ${CMAKE_BINARY_DIR}/edc/browser-view-progressbar.edj
        DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-view-progressbar.edc
        )
ADD_DEPENDENCIES(${PROJECT_NAME} browser-view-progressbar.edj)

# browser-naviframe.edj
ADD_CUSTOM_TARGET(browser-naviframe.edj
	COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images
	${CMAKE_SOURCE_DIR}/edc/browser-naviframe.edc
	${CMAKE_BINARY_DIR}/edc/browser-naviframe.edj
	DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-naviframe.edc
	)
ADD_DEPENDENCIES(${PROJECT_NAME} browser-naviframe.edj)

# browser-reader.edj
ADD_CUSTOM_TARGET(browser-reader.edj
	COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images
	${CMAKE_SOURCE_DIR}/edc/browser-reader.edc
	${CMAKE_BINARY_DIR}/edc/browser-reader.edj
	DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-reader.edc
	)
ADD_DEPENDENCIES(${PROJECT_NAME} browser-reader.edj)

# browser-view-main.edj
ADD_CUSTOM_TARGET(browser-view-main.edj
        COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images
        ${CMAKE_SOURCE_DIR}/edc/browser-view-main.edc
        ${CMAKE_BINARY_DIR}/edc/browser-view-main.edj
        DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-view-main.edc
        )
ADD_DEPENDENCIES(${PROJECT_NAME} browser-view-main.edj)

# browser-view-url-layout.edj
ADD_CUSTOM_TARGET(browser-view-url-layout.edj
        COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images
        ${CMAKE_SOURCE_DIR}/edc/browser-view-url-layout.edc
        ${CMAKE_BINARY_DIR}/edc/browser-view-url-layout.edj
        DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-view-url-layout.edc
        )
ADD_DEPENDENCIES(${PROJECT_NAME} browser-view-url-layout.edj)

# browser-view-find-word-layout.edj
ADD_CUSTOM_TARGET(browser-view-find-word-layout.edj
        COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images
        ${CMAKE_SOURCE_DIR}/edc/browser-view-find-word-layout.edc
        ${CMAKE_BINARY_DIR}/edc/browser-view-find-word-layout.edj
        DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-view-find-word-layout.edc
        )
ADD_DEPENDENCIES(${PROJECT_NAME} browser-view-find-word-layout.edj)

# browser-view-control-bar.edj
ADD_CUSTOM_TARGET(browser-view-control-bar.edj
        COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images
        ${CMAKE_SOURCE_DIR}/edc/browser-view-control-bar.edc
        ${CMAKE_BINARY_DIR}/edc/browser-view-control-bar.edj
        DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-view-control-bar.edc
        )
ADD_DEPENDENCIES(${PROJECT_NAME} browser-view-control-bar.edj)

# browser-bookmark-view.edj
ADD_CUSTOM_TARGET(browser-bookmark-view.edj
        COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images
        ${CMAKE_SOURCE_DIR}/edc/browser-bookmark-view.edc
        ${CMAKE_BINARY_DIR}/edc/browser-bookmark-view.edj
        DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-bookmark-view.edc
        )
ADD_DEPENDENCIES(${PROJECT_NAME} browser-bookmark-view.edj)

# browser-most-visited.edj
ADD_CUSTOM_TARGET(browser-most-visited.edj
        COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images
        ${CMAKE_SOURCE_DIR}/edc/browser-most-visited.edc
        ${CMAKE_BINARY_DIR}/edc/browser-most-visited.edj
        DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-most-visited.edc
        )
ADD_DEPENDENCIES(${PROJECT_NAME} browser-most-visited.edj)

# browser-multi-window.edj
ADD_CUSTOM_TARGET(browser-multi-window.edj
        COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images
        ${CMAKE_SOURCE_DIR}/edc/browser-multi-window.edc
        ${CMAKE_BINARY_DIR}/edc/browser-multi-window.edj
        DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-multi-window.edc
        )
ADD_DEPENDENCIES(${PROJECT_NAME} browser-multi-window.edj)

# browser-predictive-history.edj
ADD_CUSTOM_TARGET(browser-predictive-history.edj
        COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images
        ${CMAKE_SOURCE_DIR}/edc/browser-predictive-history.edc
        ${CMAKE_BINARY_DIR}/edc/browser-predictive-history.edj
        DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-predictive-history.edc
        )
ADD_DEPENDENCIES(${PROJECT_NAME} browser-predictive-history.edj)

# most-visited-sites.edj
ADD_CUSTOM_TARGET(most-visited-sites.edj
        COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images
        ${CMAKE_SOURCE_DIR}/edc/most-visited-sites.edc
        ${CMAKE_BINARY_DIR}/edc/most-visited-sites.edj
        DEPENDS ${CMAKE_SOURCE_DIR}/edc/most-visited-sites.edc
        )
ADD_DEPENDENCIES(${PROJECT_NAME} most-visited-sites.edj)

# browser-settings.edj
ADD_CUSTOM_TARGET(browser-settings.edj
        COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images
        ${CMAKE_SOURCE_DIR}/edc/browser-settings.edc
        ${CMAKE_BINARY_DIR}/edc/browser-settings.edj
        DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-settings.edc
        )
ADD_DEPENDENCIES(${PROJECT_NAME} browser-settings.edj)

# browser-popup.edj
ADD_CUSTOM_TARGET(browser-popup.edj
        COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images
        ${CMAKE_SOURCE_DIR}/edc/browser-popup.edc
        ${CMAKE_BINARY_DIR}/edc/browser-popup.edj
        DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-popup.edc
        )
ADD_DEPENDENCIES(${PROJECT_NAME} browser-popup.edj)

# install browser
INSTALL(PROGRAMS ${PROJECT_NAME} DESTINATION bin)
# install edj
INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-define.edj DESTINATION ${EDJE_DIR})
INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-naviframe.edj DESTINATION ${EDJE_DIR})
INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-view-main.edj DESTINATION ${EDJE_DIR})
INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-view-progressbar.edj DESTINATION ${EDJE_DIR})
INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-view-url-layout.edj DESTINATION ${EDJE_DIR})
INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-view-find-word-layout.edj DESTINATION ${EDJE_DIR})
INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-view-control-bar.edj DESTINATION ${EDJE_DIR})
INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-bookmark-view.edj DESTINATION ${EDJE_DIR})
INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-most-visited.edj DESTINATION ${EDJE_DIR})
INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-multi-window.edj DESTINATION ${EDJE_DIR})
INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-predictive-history.edj DESTINATION ${EDJE_DIR})
INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/most-visited-sites.edj DESTINATION ${EDJE_DIR})
INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-settings.edj DESTINATION ${EDJE_DIR})
INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-reader.edj DESTINATION ${EDJE_DIR})
INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-popup.edj DESTINATION ${EDJE_DIR})

# install images
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/images/install/ DESTINATION ${IMAGES_DIR}
		FILES_MATCHING
		PATTERN "*.png"
)
# install html files
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/html/ DESTINATION ${HTML_DIR}
		FILES_MATCHING PATTERN "*.html"
		PATTERN "*.png"
)
# install empty directories
INSTALL(DIRECTORY DESTINATION ${DATABASE_DIR})
INSTALL(DIRECTORY DESTINATION ${XML_DIR})
INSTALL(DIRECTORY DESTINATION ${OPML_DIR})
INSTALL(DIRECTORY DESTINATION ${SCREENSHOTS_DIR})
INSTALL(DIRECTORY DESTINATION ${WEBKIT_SOUP_CACHE_DIR})

# install manifest file & icon
INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.${PROJECT_NAME}.xml DESTINATION /opt/share/packages)

# install desktop file & icon
INSTALL(FILES ${CMAKE_SOURCE_DIR}/resource/org.tizen.${PROJECT_NAME}.png DESTINATION ${ICON_DIR})
INSTALL(FILES ${CMAKE_SOURCE_DIR}/resource/default_0 DESTINATION ${SCREENSHOTS_DIR})
INSTALL(FILES ${CMAKE_SOURCE_DIR}/resource/default_1 DESTINATION ${SCREENSHOTS_DIR})
INSTALL(FILES ${CMAKE_SOURCE_DIR}/resource/default_2 DESTINATION ${SCREENSHOTS_DIR})
INSTALL(FILES ${CMAKE_SOURCE_DIR}/resource/default_3 DESTINATION ${SCREENSHOTS_DIR})
INSTALL(FILES ${CMAKE_SOURCE_DIR}/resource/default_application_icon.png DESTINATION "${DATADIR}/")
INSTALL(FILES ${CMAKE_SOURCE_DIR}/resource/config_sample.xml DESTINATION "${DATADIR}/")
# i18n
ADD_SUBDIRECTORY(po)