Merge "Add engine app info parser" into tizen
[platform/core/uifw/stt.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(stt)
23
24 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
25 SET(EXEC_PREFIX "${PREFIX}")
26 SET(VERSION 0.2.56)
27
28 ADD_DEFINITIONS("-DSTT_LIBDIR=\"${LIBDIR}\"")
29 ADD_DEFINITIONS("-Werror")
30
31 ## Include common directory ##
32 INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/common")
33 INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/include")
34
35 ## Dependent packages ##
36 INCLUDE(FindPkgConfig)
37 IF("${_TV_PRODUCT}" STREQUAL "TRUE")
38 pkg_check_modules(pkgs REQUIRED 
39         aul capi-media-audio-io capi-media-wav-player capi-network-bluetooth capi-system-info cynara-client cynara-session
40         dbus-1 dlog ecore glib-2.0 libtzplatform-config libxml-2.0 vconf vconf-internal-keys
41 )
42 ELSE()
43 pkg_check_modules(pkgs REQUIRED 
44         aul capi-media-audio-io capi-media-wav-player capi-system-info cynara-client cynara-session
45         dbus-1 dlog ecore glib-2.0 libtzplatform-config libxml-2.0 vconf vconf-internal-keys
46 )
47 ENDIF()
48
49 pkg_check_modules(pkgs_test REQUIRED
50     dlog ecore
51 )
52
53 ## API ##
54 ADD_SUBDIRECTORY(include)
55
56 ## Client library ##
57 ADD_SUBDIRECTORY(client)
58
59 ## Server daemon ##
60 ADD_SUBDIRECTORY(server)
61
62 ## Test ##
63 ADD_SUBDIRECTORY(test)
64
65 ## Engine Parser ##
66 ADD_SUBDIRECTORY(engine-parser)
67
68 ## config ##
69 INSTALL(FILES ${CMAKE_SOURCE_DIR}/stt-config.xml DESTINATION ${TZ_SYS_RO_SHARE}/voice/stt/1.0)
70
71 ## Dbus service ##
72 INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.sttserver.service DESTINATION ${TZ_SYS_RO_SHARE}/dbus-1/services)
73
74 INSTALL(FILES ${CMAKE_SOURCE_DIR}/stt-server.conf DESTINATION /etc/dbus-1/session.d)
75 INSTALL(FILES ${CMAKE_SOURCE_DIR}/500.stt_upgrade_24to30.sh DESTINATION ${TZ_SYS_RO_SHARE}/upgrade/scripts)
76