X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=CMakeLists.txt;h=0f3f2501d64490185713433ee0b4b5a28b542a10;hb=HEAD;hp=2ec79232d6e6dcaf5adfda440ac224ffdde5cd8e;hpb=3b0e91a64e6b659605767ef069ad83c0e0ac7e52;p=platform%2Fcore%2Fuifw%2Ftts.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ec7923..0f3f250 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,7 @@ PROJECT(tts) SET(PREFIX ${CMAKE_INSTALL_PREFIX}) SET(EXEC_PREFIX "${PREFIX}") SET(INCLUDEDIR "${PREFIX}/include") -SET(VERSION 1.60.2) +SET(VERSION ${VERSION}) FIND_PROGRAM(UNAME NAMES uname) EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH") @@ -37,9 +37,9 @@ INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/common") ## Dependent packages ## INCLUDE(FindPkgConfig) -pkg_check_modules(pkgs REQUIRED +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 + 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}) @@ -80,8 +81,20 @@ ELSEIF("${ARCH}" MATCHES "^aarch64.*") INSTALL(PROGRAMS ${CMAKE_SOURCE_DIR}/bin/aarch64/tts_getengine DESTINATION ${TZ_SYS_BIN}) ELSEIF("${ARCH}" MATCHES "^x86_64.*") INSTALL(PROGRAMS ${CMAKE_SOURCE_DIR}/bin/x86_64/tts_getengine DESTINATION ${TZ_SYS_BIN}) +ELSEIF("${ARCH}" MATCHES "^riscv64.*") +INSTALL(PROGRAMS ${CMAKE_SOURCE_DIR}/bin/riscv64/tts_getengine DESTINATION ${TZ_SYS_BIN}) ENDIF() ## Sample application ## ADD_SUBDIRECTORY(test) + +## Test +IF(NOT DEFINED MINIMUM_BUILD) +ENABLE_TESTING() +SET(UNITTEST_TTS tts-unittests) +ADD_TEST(NAME ${UNITTEST_TTS} COMMAND ${UNITTEST_TTS} + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests) + +ADD_SUBDIRECTORY(tests) +ENDIF(NOT DEFINED MINIMUM_BUILD)