(AutomatedTests) Merged managed and unmanaged tests
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / CMakeLists.txt
1 SET(PKG_NAME "dali-toolkit")
2
3 SET(EXEC_NAME "tct-${PKG_NAME}-core")
4 SET(RPM_NAME "core-${PKG_NAME}-tests")
5
6 SET(CAPI_LIB "dali-toolkit")
7
8 # List of test case sources (Only these get parsed for test cases)
9 SET(TC_SOURCES
10    utc-Dali-Alignment.cpp
11    utc-Dali-BendyEffect.cpp
12    utc-Dali-BlindEffect.cpp
13    utc-Dali-BloomView.cpp
14    utc-Dali-BubbleEmitter.cpp
15    utc-Dali-Builder.cpp
16    utc-Dali-CarouselEffect.cpp
17    utc-Dali-CheckBoxButton.cpp
18    utc-Dali-Cluster.cpp
19    utc-Dali-CubeTransitionEffect.cpp
20    utc-Dali-DepthLayout.cpp
21    utc-Dali-DisplacementEffect.cpp
22    utc-Dali-DistanceFieldEffect.cpp
23    utc-Dali-GaussianBlurView.cpp
24    utc-Dali-JsonParser.cpp
25    utc-Dali-KeyInputFocusManager.cpp
26    utc-Dali-NavigationControl.cpp
27    utc-Dali-NavigationLayout.cpp
28    utc-Dali-OverlayEffect.cpp
29    utc-Dali-Page.cpp
30    utc-Dali-PageTurnEffect.cpp
31    utc-Dali-PageTurnView.cpp
32    utc-Dali-RollLayout.cpp
33    utc-Dali-ScrollView.cpp
34    utc-Dali-ShadowView.cpp
35    utc-Dali-ShearEffect.cpp
36    utc-Dali-Slider.cpp
37    utc-Dali-SoftButtonEffect.cpp
38    utc-Dali-SpiralLayout.cpp
39    utc-Dali-SpotEffect.cpp
40    utc-Dali-SquareDissolveEffect.cpp
41    utc-Dali-TableView.cpp
42    utc-Dali-ToolBar.cpp
43    utc-Dali-View.cpp
44    utc-Dali-WaterEffect.cpp
45    utc-Dali-Button.cpp
46    utc-Dali-Control.cpp
47    utc-Dali-ControlImpl.cpp
48    utc-Dali-DefaultControls.cpp
49    utc-Dali-DissolveEffect.cpp
50    utc-Dali-FocusManager.cpp
51    utc-Dali-GridLayout.cpp
52    utc-Dali-IrisEffect.cpp
53    utc-Dali-ItemLayout.cpp
54    utc-Dali-ItemView.cpp
55    utc-Dali-KeyboardFocusManager.cpp
56    utc-Dali-MarkupProcessor.cpp
57    utc-Dali-MaskEffect.cpp
58    utc-Dali-NinePatchMaskEffect.cpp
59    utc-Dali-Popup.cpp
60    utc-Dali-PushButton.cpp
61    utc-Dali-RadioButton.cpp
62    utc-Dali-Ripple2DEffect.cpp
63    utc-Dali-RippleEffect.cpp
64    utc-Dali-ScrollViewEffect.cpp
65    utc-Dali-StyleManager.cpp
66    utc-Dali-SuperBlurView.cpp
67    utc-Dali-SwirlEffect.cpp
68    utc-Dali-TextInput.cpp
69    utc-Dali-TextView.cpp
70 )
71
72 # Append list of test harness files (Won't get parsed for test cases)
73 LIST(APPEND TC_SOURCES
74    dali-toolkit-test-utils/test-harness.cpp
75    dali-toolkit-test-utils/toolkit-accessibility-manager.cpp
76    dali-toolkit-test-utils/toolkit-application.cpp
77    dali-toolkit-test-utils/toolkit-clipboard.cpp
78    dali-toolkit-test-utils/toolkit-imf-manager.cpp
79    dali-toolkit-test-utils/toolkit-physical-keyboard.cpp
80    dali-toolkit-test-utils/toolkit-style-monitor.cpp
81    dali-toolkit-test-utils/toolkit-singleton-service.cpp
82    dali-toolkit-test-utils/toolkit-timer.cpp
83    dali-toolkit-test-utils/toolkit-clipboard-event-notifier.cpp
84    dali-toolkit-test-utils/dummy-control.cpp
85    dali-toolkit-test-utils/dali-test-suite-utils.cpp
86    dali-toolkit-test-utils/test-application.cpp
87    dali-toolkit-test-utils/test-platform-abstraction.cpp
88    dali-toolkit-test-utils/test-gesture-manager.cpp
89    dali-toolkit-test-utils/test-gl-abstraction.cpp
90    dali-toolkit-test-utils/test-gl-sync-abstraction.cpp
91    dali-toolkit-test-utils/test-render-controller.cpp
92    dali-toolkit-test-utils/test-trace-call-stack.cpp
93 )
94
95
96 PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
97     dali-core
98     dali
99     dali-toolkit
100 )
101
102 SET(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -O0 -ggdb --coverage -Wall -Werror=return-type")
103
104 FOREACH(directory ${${CAPI_LIB}_LIBRARY_DIRS})
105     SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -L${directory}")
106 ENDFOREACH(directory ${CAPI_LIB_LIBRARY_DIRS})
107
108 INCLUDE_DIRECTORIES(
109     ${${CAPI_LIB}_INCLUDE_DIRS}
110     dali-toolkit-test-utils
111 )
112
113 ADD_EXECUTABLE(${EXEC_NAME} ${EXEC_NAME}.cpp ${TC_SOURCES})
114 TARGET_LINK_LIBRARIES(${EXEC_NAME}
115     ${${CAPI_LIB}_LIBRARIES}
116 )
117
118 INSTALL(PROGRAMS ${EXEC_NAME}
119     DESTINATION ${BIN_DIR}/${EXEC_NAME}
120 )