Remove RenderableActor
[platform/core/uifw/dali-core.git] / automated-tests / src / dali-devel / CMakeLists.txt
1 SET(PKG_NAME "dali-devel")
2
3 SET(EXEC_NAME "tct-${PKG_NAME}-core")
4 SET(RPM_NAME "core-${PKG_NAME}-tests")
5
6 SET(CAPI_LIB "dali-devel")
7
8 SET(TC_SOURCES
9         utc-Dali-Actor.cpp
10         utc-Dali-Atlas.cpp
11         utc-Dali-Context.cpp
12         utc-Dali-Constrainer.cpp
13         utc-Dali-CullFace.cpp
14         utc-Dali-DistanceField.cpp
15         utc-Dali-Geometry.cpp
16         utc-Dali-Hash.cpp
17         utc-Dali-HitTestAlgorithm.cpp
18         utc-Dali-Material.cpp
19         utc-Dali-Mutex.cpp
20         utc-Dali-PropertyBuffer.cpp
21         utc-Dali-Renderer.cpp
22         utc-Dali-Sampler.cpp
23         utc-Dali-Scripting.cpp
24         utc-Dali-Shader.cpp
25 )
26
27 LIST(APPEND TC_SOURCES
28         ../dali/dali-test-suite-utils/mesh-builder.cpp
29         ../dali/dali-test-suite-utils/dali-test-suite-utils.cpp
30         ../dali/dali-test-suite-utils/test-harness.cpp
31         ../dali/dali-test-suite-utils/test-application.cpp
32         ../dali/dali-test-suite-utils/test-gesture-manager.cpp
33         ../dali/dali-test-suite-utils/test-gl-abstraction.cpp
34         ../dali/dali-test-suite-utils/test-gl-sync-abstraction.cpp
35         ../dali/dali-test-suite-utils/test-native-image.cpp
36         ../dali/dali-test-suite-utils/test-platform-abstraction.cpp
37         ../dali/dali-test-suite-utils/test-render-controller.cpp
38         ../dali/dali-test-suite-utils/test-trace-call-stack.cpp
39 )
40
41 PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
42      dali-core
43 )
44
45 SET(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} ${${CAPI_LIB}_CFLAGS_OTHER} -O0 -ggdb --coverage -Wall -Werror=return-type")
46
47 FOREACH(directory ${${CAPI_LIB}_LIBRARY_DIRS})
48     SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -L${directory}")
49 ENDFOREACH(directory ${CAPI_LIB_LIBRARY_DIRS})
50
51 INCLUDE_DIRECTORIES(
52     ../../..
53     .
54     ${${CAPI_LIB}_INCLUDE_DIRS}
55     ../dali/dali-test-suite-utils
56 )
57
58 ADD_EXECUTABLE(${EXEC_NAME} ${EXEC_NAME}.cpp ${TC_SOURCES})
59 TARGET_LINK_LIBRARIES(${EXEC_NAME}
60     ${${CAPI_LIB}_LIBRARIES}
61     -lpthread
62 )
63
64 INSTALL(PROGRAMS ${EXEC_NAME}
65     DESTINATION ${BIN_DIR}/${EXEC_NAME}
66 )