1 SET(PKG_NAME "dali-toolkit")
3 SET(EXEC_NAME "tct-${PKG_NAME}-core")
4 SET(RPM_NAME "core-${PKG_NAME}-tests")
6 SET(CAPI_LIB "dali-toolkit")
8 # List of test case sources (Only these get parsed for test cases)
10 utc-Dali-Alignment.cpp
11 utc-Dali-AnimatedImageVisual.cpp
12 utc-Dali-AnimatedVectorImageVisual.cpp
13 utc-Dali-BloomView.cpp
14 utc-Dali-BubbleEmitter.cpp
16 utc-Dali-CheckBoxButton.cpp
17 utc-Dali-ConfirmationPopup.cpp
18 utc-Dali-CubeTransitionEffect.cpp
19 utc-Dali-EffectsView.cpp
20 utc-Dali-FlexContainer.cpp
21 utc-Dali-GaussianBlurView.cpp
22 utc-Dali-ImageView.cpp
23 utc-Dali-ImageVisual.cpp
24 utc-Dali-JsonParser.cpp
25 utc-Dali-KeyInputFocusManager.cpp
26 utc-Dali-PageTurnView.cpp
28 utc-Dali-ScrollBar.cpp
29 utc-Dali-ScrollView.cpp
30 utc-Dali-ShaderEffects.cpp
31 utc-Dali-ShadowView.cpp
33 utc-Dali-TableView.cpp
34 utc-Dali-TextEditor.cpp
35 utc-Dali-TextField.cpp
36 utc-Dali-TextLabel.cpp
37 utc-Dali-TextSelectionPopup.cpp
38 utc-Dali-TextSelectionPopupMirroringLTR.cpp
39 utc-Dali-TextSelectionPopupMirroringRTL.cpp
40 utc-Dali-TextureManager.cpp
43 utc-Dali-TransitionData.cpp
46 utc-Dali-ControlImpl.cpp
47 utc-Dali-AccessibilityManager.cpp
48 utc-Dali-ItemLayout.cpp
50 utc-Dali-KeyboardFocusManager.cpp
51 utc-Dali-Magnifier.cpp
52 utc-Dali-NavigationView.cpp
54 utc-Dali-ProgressBar.cpp
55 utc-Dali-PushButton.cpp
56 utc-Dali-RadioButton.cpp
57 utc-Dali-ToggleButton.cpp
58 utc-Dali-ScrollViewEffect.cpp
59 utc-Dali-SuperBlurView.cpp
61 utc-Dali-Model3dView.cpp
63 utc-Dali-VisualFactory.cpp
64 utc-Dali-ImageAtlas.cpp
65 utc-Dali-VideoView.cpp
66 utc-Dali-AsyncImageLoader.cpp
67 utc-Dali-SyncImageLoader.cpp
68 utc-Dali-ControlWrapper.cpp
71 # Append list of test harness files (Won't get parsed for test cases)
72 LIST(APPEND TC_SOURCES
73 dali-toolkit-test-utils/toolkit-adaptor.cpp
74 dali-toolkit-test-utils/toolkit-accessibility-adaptor.cpp
75 dali-toolkit-test-utils/toolkit-application.cpp
76 dali-toolkit-test-utils/toolkit-clipboard.cpp
77 dali-toolkit-test-utils/toolkit-clipboard-event-notifier.cpp
78 dali-toolkit-test-utils/toolkit-event-thread-callback.cpp
79 dali-toolkit-test-utils/toolkit-environment-variable.cpp
80 dali-toolkit-test-utils/toolkit-imf-manager.cpp
81 dali-toolkit-test-utils/toolkit-orientation.cpp
82 dali-toolkit-test-utils/toolkit-physical-keyboard.cpp
83 dali-toolkit-test-utils/toolkit-style-monitor.cpp
84 dali-toolkit-test-utils/toolkit-singleton-service.cpp
85 dali-toolkit-test-utils/toolkit-timer.cpp
86 dali-toolkit-test-utils/toolkit-tts-player.cpp
87 dali-toolkit-test-utils/toolkit-native-image-source.cpp
88 dali-toolkit-test-utils/toolkit-video-player.cpp
89 dali-toolkit-test-utils/toolkit-trigger-event-factory.cpp
90 dali-toolkit-test-utils/toolkit-web-view-lite.cpp
91 dali-toolkit-test-utils/dali-test-suite-utils.cpp
92 dali-toolkit-test-utils/dummy-control.cpp
93 dali-toolkit-test-utils/mesh-builder.cpp
94 dali-toolkit-test-utils/test-actor-utils.cpp
95 dali-toolkit-test-utils/test-animation-data.cpp
96 dali-toolkit-test-utils/test-application.cpp
97 dali-toolkit-test-utils/test-button.cpp
98 dali-toolkit-test-utils/test-harness.cpp
99 dali-toolkit-test-utils/test-gesture-manager.cpp
100 dali-toolkit-test-utils/test-gl-abstraction.cpp
101 dali-toolkit-test-utils/test-gl-sync-abstraction.cpp
102 dali-toolkit-test-utils/test-platform-abstraction.cpp
103 dali-toolkit-test-utils/test-render-controller.cpp
104 dali-toolkit-test-utils/test-trace-call-stack.cpp
105 dali-toolkit-test-utils/test-native-image.cpp
109 PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
115 ADD_COMPILE_OPTIONS( -O0 -ggdb --coverage -Wall -Werror )
116 ADD_COMPILE_OPTIONS( ${${CAPI_LIB}_CFLAGS_OTHER} )
118 ADD_DEFINITIONS(-DTEST_RESOURCE_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/../../resources\" )
120 FOREACH(directory ${${CAPI_LIB}_LIBRARY_DIRS})
121 SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -L${directory}")
122 ENDFOREACH(directory ${CAPI_LIB_LIBRARY_DIRS})
126 ${${CAPI_LIB}_INCLUDE_DIRS}
127 dali-toolkit-test-utils
130 ADD_EXECUTABLE(${EXEC_NAME} ${EXEC_NAME}.cpp ${TC_SOURCES})
131 TARGET_LINK_LIBRARIES(${EXEC_NAME}
132 ${${CAPI_LIB}_LIBRARIES}
136 INSTALL(PROGRAMS ${EXEC_NAME}
137 DESTINATION ${BIN_DIR}/${EXEC_NAME}