Merge "DALi Version 1.0.30" into tizen
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit-internal / CMakeLists.txt
1 SET(PKG_NAME "dali-toolkit-internal")
2
3 SET(EXEC_NAME "tct-${PKG_NAME}-core")
4 SET(RPM_NAME "core-${PKG_NAME}-tests")
5
6 SET(CAPI_LIB "dali-toolkit-internal")
7
8 # List of test case sources (Only these get parsed for test cases)
9 SET(TC_SOURCES
10  utc-Dali-PushButton.cpp
11  utc-Dali-TextView-HelperAndDebug.cpp
12  utc-Dali-TextView-Processor-Types.cpp
13  utc-Dali-TextView-Processor.cpp
14  utc-Dali-TextView-Relayout-Utilities.cpp
15  utc-Dali-TextView.cpp
16 )
17
18 # Append list of test harness files (Won't get parsed for test cases)
19 LIST(APPEND TC_SOURCES
20    ../dali-toolkit/dali-toolkit-test-utils/test-harness.cpp
21    ../dali-toolkit/dali-toolkit-test-utils/toolkit-accessibility-manager.cpp
22    ../dali-toolkit/dali-toolkit-test-utils/toolkit-application.cpp
23    ../dali-toolkit/dali-toolkit-test-utils/toolkit-clipboard.cpp
24    ../dali-toolkit/dali-toolkit-test-utils/toolkit-imf-manager.cpp
25    ../dali-toolkit/dali-toolkit-test-utils/toolkit-orientation.cpp
26    ../dali-toolkit/dali-toolkit-test-utils/toolkit-physical-keyboard.cpp
27    ../dali-toolkit/dali-toolkit-test-utils/toolkit-style-monitor.cpp
28    ../dali-toolkit/dali-toolkit-test-utils/toolkit-singleton-service.cpp
29    ../dali-toolkit/dali-toolkit-test-utils/toolkit-timer.cpp
30    ../dali-toolkit/dali-toolkit-test-utils/toolkit-clipboard-event-notifier.cpp
31    ../dali-toolkit/dali-toolkit-test-utils/dummy-control.cpp
32    ../dali-toolkit/dali-toolkit-test-utils/dali-test-suite-utils.cpp
33    ../dali-toolkit/dali-toolkit-test-utils/test-application.cpp
34    ../dali-toolkit/dali-toolkit-test-utils/test-platform-abstraction.cpp
35    ../dali-toolkit/dali-toolkit-test-utils/test-gesture-manager.cpp
36    ../dali-toolkit/dali-toolkit-test-utils/test-gl-abstraction.cpp
37    ../dali-toolkit/dali-toolkit-test-utils/test-gl-sync-abstraction.cpp
38    ../dali-toolkit/dali-toolkit-test-utils/test-render-controller.cpp
39    ../dali-toolkit/dali-toolkit-test-utils/test-trace-call-stack.cpp
40 )
41
42
43 PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
44     dali-core
45     dali
46     dali-toolkit
47 )
48
49 SET(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -O0 -ggdb --coverage -Wall -Werror=return-type")
50
51 FOREACH(directory ${${CAPI_LIB}_LIBRARY_DIRS})
52     SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -L${directory}")
53 ENDFOREACH(directory ${CAPI_LIB_LIBRARY_DIRS})
54
55 INCLUDE_DIRECTORIES(
56     ${${CAPI_LIB}_INCLUDE_DIRS}
57     ../dali-toolkit/dali-toolkit-test-utils
58     ../../../
59 )
60
61 ADD_EXECUTABLE(${EXEC_NAME} ${EXEC_NAME}.cpp ${TC_SOURCES})
62 TARGET_LINK_LIBRARIES(${EXEC_NAME}
63     ${${CAPI_LIB}_LIBRARIES}
64 )
65
66 INSTALL(PROGRAMS ${EXEC_NAME}
67     DESTINATION ${BIN_DIR}/${EXEC_NAME}
68 )