1 # Copyright (c) 2011-2014 Samsung Electronics Co., Ltd All Rights Reserved
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 # @file CMakeLists.txt
17 # @author Dongyeol Lee (dy3.lee@samsung.com)
21 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
24 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
25 SET(EXEC_PREFIX "${PREFIX}")
26 SET(INCLUDEDIR "${PREFIX}/include")
29 IF (LIBDIR MATCHES "/usr/lib64")
30 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DLIB64")
33 ## Include common directory ##
34 INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/common")
36 ## Dependent packages ##
37 INCLUDE(FindPkgConfig)
38 pkg_check_modules(pkgs REQUIRED
39 aul capi-media-audio-io capi-system-info dbus-1 dlog ecore
40 glib-2.0 libtzplatform-config libxml-2.0 vconf
43 pkg_check_modules(pkgs_test REQUIRED
48 ADD_SUBDIRECTORY(include)
51 ADD_SUBDIRECTORY(client)
54 ADD_SUBDIRECTORY(server)
56 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE RENAME tts DESTINATION /usr/share/license)
59 INSTALL(FILES ${CMAKE_SOURCE_DIR}/tts-config.xml DESTINATION ${LIBDIR}/voice/tts/1.0)
61 INSTALL(FILES ${CMAKE_SOURCE_DIR}/tts-server.conf DESTINATION /etc/dbus-1/system.d)
64 INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.ttsserver.service DESTINATION /usr/share/dbus-1/system-services)
65 INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.ttsnotiserver.service DESTINATION /usr/share/dbus-1/system-services)
66 INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.ttssrserver.service DESTINATION /usr/share/dbus-1/system-services)
68 ## Sample application ##
69 ADD_SUBDIRECTORY(test)