ImageVisual Action::Reload added
[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-AnimatedImageVisual.cpp
12    utc-Dali-BloomView.cpp
13    utc-Dali-BubbleEmitter.cpp
14    utc-Dali-Builder.cpp
15    utc-Dali-CheckBoxButton.cpp
16    utc-Dali-ConfirmationPopup.cpp
17    utc-Dali-CubeTransitionEffect.cpp
18    utc-Dali-EffectsView.cpp
19    utc-Dali-FlexContainer.cpp
20    utc-Dali-GaussianBlurView.cpp
21    utc-Dali-ImageView.cpp
22    utc-Dali-ImageVisual.cpp
23    utc-Dali-JsonParser.cpp
24    utc-Dali-KeyInputFocusManager.cpp
25    utc-Dali-PageTurnView.cpp
26    utc-Dali-Script.cpp
27    utc-Dali-ScrollBar.cpp
28    utc-Dali-ScrollView.cpp
29    utc-Dali-ShaderEffects.cpp
30    utc-Dali-ShadowView.cpp
31    utc-Dali-Slider.cpp
32    utc-Dali-TableView.cpp
33    utc-Dali-TextEditor.cpp
34    utc-Dali-TextField.cpp
35    utc-Dali-TextLabel.cpp
36    utc-Dali-TextSelectionPopup.cpp
37    utc-Dali-TextSelectionPopupMirroringLTR.cpp
38    utc-Dali-TextSelectionPopupMirroringRTL.cpp
39    utc-Dali-TextureManager.cpp
40    utc-Dali-ToolBar.cpp
41    utc-Dali-Tooltip.cpp
42    utc-Dali-TransitionData.cpp
43    utc-Dali-Button.cpp
44    utc-Dali-Control.cpp
45    utc-Dali-ControlImpl.cpp
46    utc-Dali-AccessibilityManager.cpp
47    utc-Dali-ItemLayout.cpp
48    utc-Dali-ItemView.cpp
49    utc-Dali-KeyboardFocusManager.cpp
50    utc-Dali-Magnifier.cpp
51    utc-Dali-NavigationView.cpp
52    utc-Dali-Popup.cpp
53    utc-Dali-ProgressBar.cpp
54    utc-Dali-PushButton.cpp
55    utc-Dali-RadioButton.cpp
56    utc-Dali-ToggleButton.cpp
57    utc-Dali-ScrollViewEffect.cpp
58    utc-Dali-SuperBlurView.cpp
59    utc-Dali-Toolkit.cpp
60    utc-Dali-Model3dView.cpp
61    utc-Dali-Visual.cpp
62    utc-Dali-VisualFactory.cpp
63    utc-Dali-ImageAtlas.cpp
64    utc-Dali-VideoView.cpp
65    utc-Dali-AsyncImageLoader.cpp
66    utc-Dali-SyncImageLoader.cpp
67    utc-Dali-ControlWrapper.cpp
68 )
69
70 # Append list of test harness files (Won't get parsed for test cases)
71 LIST(APPEND TC_SOURCES
72    dali-toolkit-test-utils/toolkit-adaptor.cpp
73    dali-toolkit-test-utils/toolkit-accessibility-adaptor.cpp
74    dali-toolkit-test-utils/toolkit-application.cpp
75    dali-toolkit-test-utils/toolkit-clipboard.cpp
76    dali-toolkit-test-utils/toolkit-clipboard-event-notifier.cpp
77    dali-toolkit-test-utils/toolkit-event-thread-callback.cpp
78    dali-toolkit-test-utils/toolkit-environment-variable.cpp
79    dali-toolkit-test-utils/toolkit-imf-manager.cpp
80    dali-toolkit-test-utils/toolkit-orientation.cpp
81    dali-toolkit-test-utils/toolkit-physical-keyboard.cpp
82    dali-toolkit-test-utils/toolkit-style-monitor.cpp
83    dali-toolkit-test-utils/toolkit-singleton-service.cpp
84    dali-toolkit-test-utils/toolkit-timer.cpp
85    dali-toolkit-test-utils/toolkit-tts-player.cpp
86    dali-toolkit-test-utils/toolkit-native-image-source.cpp
87    dali-toolkit-test-utils/toolkit-video-player.cpp
88    dali-toolkit-test-utils/toolkit-trigger-event-factory.cpp
89    dali-toolkit-test-utils/dali-test-suite-utils.cpp
90    dali-toolkit-test-utils/dummy-control.cpp
91    dali-toolkit-test-utils/mesh-builder.cpp
92    dali-toolkit-test-utils/test-actor-utils.cpp
93    dali-toolkit-test-utils/test-animation-data.cpp
94    dali-toolkit-test-utils/test-application.cpp
95    dali-toolkit-test-utils/test-button.cpp
96    dali-toolkit-test-utils/test-harness.cpp
97    dali-toolkit-test-utils/test-gesture-manager.cpp
98    dali-toolkit-test-utils/test-gl-abstraction.cpp
99    dali-toolkit-test-utils/test-gl-sync-abstraction.cpp
100    dali-toolkit-test-utils/test-platform-abstraction.cpp
101    dali-toolkit-test-utils/test-render-controller.cpp
102    dali-toolkit-test-utils/test-trace-call-stack.cpp
103    dali-toolkit-test-utils/test-native-image.cpp
104 )
105
106
107 PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
108     dali-core
109     dali-adaptor
110     dali-toolkit
111 )
112
113 ADD_COMPILE_OPTIONS( -O0 -ggdb --coverage -Wall -Werror )
114 ADD_COMPILE_OPTIONS( ${${CAPI_LIB}_CFLAGS_OTHER} )
115
116 ADD_DEFINITIONS(-DTEST_RESOURCE_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/../../resources\" )
117
118 FOREACH(directory ${${CAPI_LIB}_LIBRARY_DIRS})
119     SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -L${directory}")
120 ENDFOREACH(directory ${CAPI_LIB_LIBRARY_DIRS})
121
122 INCLUDE_DIRECTORIES(
123     ../../../
124     ${${CAPI_LIB}_INCLUDE_DIRS}
125     dali-toolkit-test-utils
126 )
127
128 ADD_EXECUTABLE(${EXEC_NAME} ${EXEC_NAME}.cpp ${TC_SOURCES})
129 TARGET_LINK_LIBRARIES(${EXEC_NAME}
130     ${${CAPI_LIB}_LIBRARIES}
131     -lpthread --coverage
132 )
133
134 INSTALL(PROGRAMS ${EXEC_NAME}
135     DESTINATION ${BIN_DIR}/${EXEC_NAME}
136 )