Shader support
[platform/core/uifw/dali-adaptor.git] / automated-tests / src / dali-graphics / CMakeLists.txt
1 SET(PKG_NAME "dali-graphics")
2
3 SET(EXEC_NAME "tct-${PKG_NAME}-core")
4 SET(RPM_NAME "core-${PKG_NAME}-tests")
5
6 SET(CAPI_LIB "dali-graphics")
7 SET(TC_SOURCES
8     utc-Dali-GraphicsGeometry.cpp
9 )
10
11 LIST(APPEND TC_SOURCES
12   ../dali-adaptor/dali-test-suite-utils/dali-test-suite-utils.cpp
13   ../dali-adaptor/dali-test-suite-utils/test-harness.cpp
14   ../dali-adaptor/dali-test-suite-utils/test-graphics-application.cpp
15   ../dali-adaptor/dali-test-suite-utils/test-gl-abstraction.cpp
16   ../dali-adaptor/dali-test-suite-utils/test-gl-sync-abstraction.cpp
17   ../dali-adaptor/dali-test-suite-utils/test-graphics-buffer.cpp
18   ../dali-adaptor/dali-test-suite-utils/test-graphics-command-buffer.cpp
19   ../dali-adaptor/dali-test-suite-utils/test-graphics-controller.cpp
20   ../dali-adaptor/dali-test-suite-utils/test-graphics-texture.cpp
21   ../dali-adaptor/dali-test-suite-utils/test-graphics-sampler.cpp
22   ../dali-adaptor/dali-test-suite-utils/test-graphics-pipeline.cpp
23   ../dali-adaptor/dali-test-suite-utils/test-graphics-program.cpp
24   ../dali-adaptor/dali-test-suite-utils/test-graphics-reflection.cpp
25   ../dali-adaptor/dali-test-suite-utils/test-native-image.cpp
26   ../dali-adaptor/dali-test-suite-utils/test-platform-abstraction.cpp
27   ../dali-adaptor/dali-test-suite-utils/test-render-controller.cpp
28   ../dali-adaptor/dali-test-suite-utils/test-trace-call-stack.cpp
29   ../dali-adaptor/dali-test-suite-utils/adaptor-test-adaptor-impl.cpp
30   tct-dali-graphics-core.cpp
31 )
32
33 PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
34     dali2-core
35     dali2-adaptor
36     ecore
37     ecore-x
38 )
39
40 ADD_COMPILE_OPTIONS( -O0 -ggdb --coverage -Wall -Werror )
41 ADD_COMPILE_OPTIONS( ${${CAPI_LIB}_CFLAGS_OTHER} )
42
43 ADD_DEFINITIONS(-DTEST_RESOURCE_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/../../resources\" )
44
45 FOREACH(directory ${${CAPI_LIB}_LIBRARY_DIRS})
46     SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -L${directory}")
47 ENDFOREACH(directory ${CAPI_LIB_LIBRARY_DIRS})
48
49 INCLUDE_DIRECTORIES(
50   ../../../
51   ${${CAPI_LIB}_INCLUDE_DIRS}
52   ../dali-adaptor/dali-test-suite-utils
53 )
54
55 ADD_EXECUTABLE(${EXEC_NAME} ${EXEC_NAME}.cpp ${TC_SOURCES})
56 TARGET_LINK_LIBRARIES(${EXEC_NAME}
57   ${${CAPI_LIB}_LIBRARIES}
58   --coverage
59 )
60
61 INSTALL(PROGRAMS ${EXEC_NAME}
62     DESTINATION ${BIN_DIR}/${EXEC_NAME}
63 )