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