Merge with Tizen 2.3
[platform/core/uifw/tts.git] / CMakeLists.txt
1 # Copyright (c) 2011-2014 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(VERSION 0.2.41)
27
28 ## Include common directory ##
29 INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/common")
30
31 ## Dependent packages ##
32 INCLUDE(FindPkgConfig)
33 pkg_check_modules(pkgs REQUIRED  
34         aul capi-media-audio-io capi-system-info dbus-1 dlog ecore 
35         glib-2.0 libprivilege-control libtzplatform-config libxml-2.0 vconf
36 )
37
38 pkg_check_modules(pkgs_test REQUIRED
39     ecore dlog
40 )
41
42 ## API ##
43 ADD_SUBDIRECTORY(include)
44
45 ## Client library ##
46 ADD_SUBDIRECTORY(client)
47
48 ## Server daemon ##
49 ADD_SUBDIRECTORY(server)
50
51 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.APLv2 RENAME tts DESTINATION /usr/share/license)
52
53 ## Config ##
54 INSTALL(FILES ${CMAKE_SOURCE_DIR}/tts-config.xml DESTINATION /usr/lib/voice/tts/1.0)
55
56 ## Sample application ##
57 ADD_SUBDIRECTORY(test)