(Vector) Change properties to get frame numbers
[platform/core/uifw/dali-toolkit.git] / automated-tests / CMakeLists.txt.in
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
2 PROJECT(tct_coreapi_utc)
3
4 INCLUDE(FindPkgConfig)
5 SET(BIN_DIR "/opt/usr/bin")
6
7 ADD_DEFINITIONS(-DDALI_STYLE_DIR="@dataReadOnlyDir@/toolkit/styles/")
8
9 INCLUDE_DIRECTORIES(
10   src/common
11 )
12
13 ADD_SUBDIRECTORY(src)
14
15 #Internationalization
16 SET(PO_DIR ${CMAKE_SOURCE_DIR}/resources/po)
17 MESSAGE("po dir: ${PO_DIR}")
18 FILE(GLOB PO_FILES RELATIVE "${PO_DIR}" "${PO_DIR}/*.po")
19
20 SET(MSGFMT "/usr/bin/msgfmt")
21 SET(MO_FILES_DIR /tmp/locale)
22 FILE(MAKE_DIRECTORY ${MO_FILES_DIR})
23
24 FOREACH(PO_FILE ${PO_FILES})
25         SET(PO_FILE ${PO_DIR}/${PO_FILE})
26         MESSAGE("PO: ${PO_FILE}")
27         GET_FILENAME_COMPONENT(ABS_PO_FILE ${PO_FILE} ABSOLUTE)
28         MESSAGE("ABS_PO_FILE : ${ABS_PO_FILE}")
29         GET_FILENAME_COMPONENT(lang ${ABS_PO_FILE} NAME_WE)
30         MESSAGE("lang : ${lang}")
31         FILE(MAKE_DIRECTORY ${MO_FILES_DIR}/${lang}/LC_MESSAGES)
32         SET(MO_FILE ${MO_FILES_DIR}/${lang}/LC_MESSAGES/dali-toolkit.mo)
33         MESSAGE("MO_FILE : ${MO_FILE}")
34         ADD_CUSTOM_COMMAND(OUTPUT ${MO_FILE}
35                            COMMAND ${MSGFMT} -o ${MO_FILE} ${ABS_PO_FILE}
36                            DEPENDS ${ABS_PO_FILE})
37         SET(MO_FILES ${MO_FILES} ${MO_FILE})
38 ENDFOREACH(PO_FILE)
39
40 MESSAGE(".mo files: ${MO_FILES}")
41 ADD_CUSTOM_TARGET(po ALL DEPENDS ${MO_FILES})