Add engine info parser
[platform/core/uifw/tts.git] / CMakeLists.txt
1 # Copyright (c) 2011-2016 Samsung Electronics Co., Ltd All Rights Reserved
2 #
3 #    Licensed under the Apache License, Version 2.0 (the "License");
4 #    you may not use this file except in compliance with the License.
5 #    You may obtain a copy of the License at
6 #
7 #        http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #    Unless required by applicable law or agreed to in writing, software
10 #    distributed under the License is distributed on an "AS IS" BASIS,
11 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #    See the License for the specific language governing permissions and
13 #    limitations under the License.
14 #
15 #
16 # @file        CMakeLists.txt
17 # @author      Dongyeol Lee (dy3.lee@samsung.com)
18 # @version     0.1
19 # @brief
20
21 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
22 PROJECT(tts)
23
24 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
25 SET(EXEC_PREFIX "${PREFIX}")
26 SET(INCLUDEDIR "${PREFIX}/include")
27 SET(VERSION 0.2.44)
28
29 ADD_DEFINITIONS("-DTTS_LIBDIR=\"${LIBDIR}\"")
30 ADD_DEFINITIONS("-Werror")
31
32 ## Include common directory ##
33 INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/common")
34
35 ## Dependent packages ##
36 INCLUDE(FindPkgConfig)
37 pkg_check_modules(pkgs REQUIRED  
38         aul capi-media-audio-io capi-system-info dbus-1 dlog ecore 
39         glib-2.0 libtzplatform-config libxml-2.0 vconf bundle
40 )
41
42 pkg_check_modules(pkgs_test REQUIRED
43     ecore dlog
44 )
45
46 ## API ##
47 ADD_SUBDIRECTORY(include)
48
49 ## Client library ##
50 ADD_SUBDIRECTORY(client)
51
52 ## Server daemon ##
53 ADD_SUBDIRECTORY(server)
54
55 ## Engine Parser ##
56 ADD_SUBDIRECTORY(engine-parser)
57
58 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE RENAME tts DESTINATION ${TZ_SYS_RO_SHARE}/license)
59
60 ## Config ##
61 INSTALL(FILES ${CMAKE_SOURCE_DIR}/tts-config.xml DESTINATION ${TZ_SYS_RO_SHARE}/voice/tts/1.0)
62
63 INSTALL(FILES ${CMAKE_SOURCE_DIR}/tts-server.conf DESTINATION /etc/dbus-1/system.d)
64
65 ## Upgrade script ##
66 INSTALL(FILES ${CMAKE_SOURCE_DIR}/501.tts_upgrade_24to30.sh DESTINATION ${TZ_SYS_RO_SHARE}/upgrade/scripts)
67
68 ## Dbus service ##
69 INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.ttsserver.service DESTINATION ${TZ_SYS_RO_SHARE}/dbus-1/services)
70 INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.ttsnotiserver.service DESTINATION ${TZ_SYS_RO_SHARE}/dbus-1/services)
71 INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.ttssrserver.service DESTINATION ${TZ_SYS_RO_SHARE}/dbus-1/services)
72
73 ## Sample application ##
74 ADD_SUBDIRECTORY(test)