[dali_1.0.44] Merge branch 'devel/master'
[platform/core/uifw/dali-core.git] / automated-tests / src / dali / CMakeLists.txt
1 SET(PKG_NAME "dali")
2
3 SET(EXEC_NAME "tct-${PKG_NAME}-core")
4 SET(RPM_NAME "core-${PKG_NAME}-tests")
5
6 SET(CAPI_LIB "dali")
7
8 SET(TC_SOURCES
9         utc-Dali-Actor.cpp
10         utc-Dali-AlphaFunction.cpp
11         utc-Dali-AngleAxis.cpp
12         utc-Dali-Animation.cpp
13         utc-Dali-Any.cpp
14         utc-Dali-BaseHandle.cpp
15         utc-Dali-BufferImage.cpp
16         utc-Dali-CameraActor.cpp
17         utc-Dali-Constraint.cpp
18         utc-Dali-ConstraintFunction.cpp
19         utc-Dali-Constraints.cpp
20         utc-Dali-ConstraintSource.cpp
21         utc-Dali-ConnectionTracker.cpp
22         utc-Dali-CustomActor.cpp
23         utc-Dali-Degree.cpp
24         utc-Dali-EncodedBufferImage.cpp
25         utc-Dali-FrameBufferImage.cpp
26         utc-Dali-Gesture.cpp
27         utc-Dali-GestureDetector.cpp
28         utc-Dali-Handle.cpp
29         utc-Dali-HoverProcessing.cpp
30         utc-Dali-Image.cpp
31         utc-Dali-ImageActor.cpp
32         utc-Dali-IntrusivePtr.cpp
33         utc-Dali-KeyEvent.cpp
34         utc-Dali-Layer.cpp
35         utc-Dali-LocklessBuffer.cpp
36         utc-Dali-LongPressGesture.cpp
37         utc-Dali-LongPressGestureDetector.cpp
38         utc-Dali-MathUtils.cpp
39         utc-Dali-Matrix.cpp
40         utc-Dali-Matrix3.cpp
41         utc-Dali-NativeImage.cpp
42         utc-Dali-NinePatchImages.cpp
43         utc-Dali-ObjectRegistry.cpp
44         utc-Dali-PanGesture.cpp
45         utc-Dali-PanGestureDetector.cpp
46         utc-Dali-Path.cpp
47         utc-Dali-PinchGesture.cpp
48         utc-Dali-PinchGestureDetector.cpp
49         utc-Dali-Pixel.cpp
50         utc-Dali-PropertyMap.cpp
51         utc-Dali-PropertyArray.cpp
52         utc-Dali-PropertyNotification.cpp
53         utc-Dali-PropertyTypes.cpp
54         utc-Dali-PropertyValue.cpp
55         utc-Dali-Quaternion.cpp
56         utc-Dali-Radian.cpp
57         utc-Dali-Random.cpp
58         utc-Dali-Rect.cpp
59         utc-Dali-RenderTask.cpp
60         utc-Dali-RenderTaskList.cpp
61         utc-Dali-RenderableActor.cpp
62         utc-Dali-ResourceImage.cpp
63         utc-Dali-ShaderEffect.cpp
64         utc-Dali-SignalTemplatesFunctors.cpp
65         utc-Dali-SignalTemplates.cpp
66         utc-Dali-Stage.cpp
67         utc-Dali-TapGesture.cpp
68         utc-Dali-TapGestureDetector.cpp
69         utc-Dali-TouchEventCombiner.cpp
70         utc-Dali-TouchProcessing.cpp
71         utc-Dali-TypeRegistry.cpp
72         utc-Dali-Uint16Pair.cpp
73         utc-Dali-Vector.cpp
74         utc-Dali-Vector2.cpp
75         utc-Dali-Vector3.cpp
76         utc-Dali-Vector4.cpp
77         utc-Dali-WheelEvent.cpp
78 )
79
80 LIST(APPEND TC_SOURCES
81         dali-test-suite-utils/test-harness.cpp
82         dali-test-suite-utils/dali-test-suite-utils.cpp
83         dali-test-suite-utils/test-application.cpp
84         dali-test-suite-utils/test-dynamics.cpp
85         dali-test-suite-utils/test-gesture-manager.cpp
86         dali-test-suite-utils/test-gl-abstraction.cpp
87         dali-test-suite-utils/test-gl-sync-abstraction.cpp
88         dali-test-suite-utils/test-native-image.cpp
89         dali-test-suite-utils/test-platform-abstraction.cpp
90         dali-test-suite-utils/test-render-controller.cpp
91         dali-test-suite-utils/test-trace-call-stack.cpp
92 )
93
94 PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
95      dali-core
96 )
97
98 SET(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} ${${CAPI_LIB}_CFLAGS_OTHER} -O0 -ggdb --coverage -Wall -Werror=return-type")
99
100 FOREACH(directory ${${CAPI_LIB}_LIBRARY_DIRS})
101     SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -L${directory}")
102 ENDFOREACH(directory ${CAPI_LIB_LIBRARY_DIRS})
103
104 INCLUDE_DIRECTORIES(
105     ../../../
106     ${${CAPI_LIB}_INCLUDE_DIRS}
107     dali-test-suite-utils
108 )
109
110 ADD_EXECUTABLE(${EXEC_NAME} ${EXEC_NAME}.cpp ${TC_SOURCES})
111 TARGET_LINK_LIBRARIES(${EXEC_NAME}
112     ${${CAPI_LIB}_LIBRARIES}
113 )
114
115 INSTALL(PROGRAMS ${EXEC_NAME}
116     DESTINATION ${BIN_DIR}/${EXEC_NAME}
117 )