Merge "Fix defect that is detected by static analysis tool" into tizen
[platform/core/uifw/tts.git] / CMakeLists.txt
index 677369d..06900bb 100644 (file)
@@ -24,7 +24,7 @@ PROJECT(tts)
 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
 SET(EXEC_PREFIX "${PREFIX}")
 SET(INCLUDEDIR "${PREFIX}/include")
-SET(VERSION 1.60.7)
+SET(VERSION ${VERSION})
 
 FIND_PROGRAM(UNAME NAMES uname)
 EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH")
@@ -39,7 +39,7 @@ INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/common")
 INCLUDE(FindPkgConfig)
 pkg_check_modules(pkgs REQUIRED
        aul capi-media-audio-io capi-appfw-app-manager capi-system-info dbus-1 dlog ecore
-       glib-2.0 libgum libtzplatform-config libxml-2.0 libsystemd-login vconf bundle buxton2 pkgmgr gmock
+       glib-2.0 libgum libtzplatform-config libxml-2.0 vconf bundle buxton2 pkgmgr gmock capi-appfw-app-common rpc-port
 )
 
 pkg_check_modules(pkgs_test REQUIRED
@@ -65,10 +65,11 @@ INSTALL(FILES ${CMAKE_SOURCE_DIR}/tts-server.conf DESTINATION /etc/dbus-1/system
 
 ## Dbus service ##
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.ttsserver.service DESTINATION ${TZ_SYS_RO_SHARE}/dbus-1/system-services)
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.ttsnotiserver.service DESTINATION ${TZ_SYS_RO_SHARE}/dbus-1/system-services)
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.ttssrserver.service DESTINATION ${TZ_SYS_RO_SHARE}/dbus-1/system-services)
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.ttsnotiserver.service DESTINATION ${TZ_SYS_RO_SHARE}/dbus-1/system-services)
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.ttsinterruptserver.service DESTINATION ${TZ_SYS_RO_SHARE}/dbus-1/system-services)
 
+
 ## tts_getengine ##
 IF("${ARCH}" MATCHES "^arm.*")
 INSTALL(PROGRAMS ${CMAKE_SOURCE_DIR}/bin/armv7l/tts_getengine DESTINATION ${TZ_SYS_BIN})
@@ -89,7 +90,7 @@ ADD_SUBDIRECTORY(test)
 ## Test
 IF(NOT DEFINED MINIMUM_BUILD)
 ENABLE_TESTING()
-SET(UNITTEST_TTS tts_unittests)
+SET(UNITTEST_TTS tts-unittests)
 ADD_TEST(NAME ${UNITTEST_TTS} COMMAND ${UNITTEST_TTS}
                         WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests)