ea5ce5cb312cee9ec7bc6c78056e129a9b3a2400
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit-third-party / CMakeLists.txt
1 SET(PKG_NAME "dali-toolkit-third-party")
2
3 SET(EXEC_NAME "tct-${PKG_NAME}-core")
4 SET(RPM_NAME "core-${PKG_NAME}-tests")
5
6 SET(CAPI_LIB "dali-toolkit-third-party")
7
8 # List of test case sources (Only these get parsed for test cases)
9 SET(TC_SOURCES
10  utc-Dali-Flexbox-Layout.cpp
11 )
12
13 # Append list of test harness files (Won't get parsed for test cases)
14 LIST(APPEND TC_SOURCES
15    ../dali-toolkit/dali-toolkit-test-utils/toolkit-accessibility-adaptor.cpp
16    ../dali-toolkit/dali-toolkit-test-utils/toolkit-application.cpp
17    ../dali-toolkit/dali-toolkit-test-utils/toolkit-clipboard.cpp
18    ../dali-toolkit/dali-toolkit-test-utils/toolkit-clipboard-event-notifier.cpp
19    ../dali-toolkit/dali-toolkit-test-utils/toolkit-event-thread-callback.cpp
20    ../dali-toolkit/dali-toolkit-test-utils/toolkit-environment-variable.cpp
21    ../dali-toolkit/dali-toolkit-test-utils/toolkit-imf-manager.cpp
22    ../dali-toolkit/dali-toolkit-test-utils/toolkit-orientation.cpp
23    ../dali-toolkit/dali-toolkit-test-utils/toolkit-physical-keyboard.cpp
24    ../dali-toolkit/dali-toolkit-test-utils/toolkit-style-monitor.cpp
25    ../dali-toolkit/dali-toolkit-test-utils/toolkit-singleton-service.cpp
26    ../dali-toolkit/dali-toolkit-test-utils/toolkit-timer.cpp
27    ../dali-toolkit/dali-toolkit-test-utils/toolkit-tts-player.cpp
28    ../dali-toolkit/dali-toolkit-test-utils/dali-test-suite-utils.cpp
29    ../dali-toolkit/dali-toolkit-test-utils/dummy-control.cpp
30    ../dali-toolkit/dali-toolkit-test-utils/mesh-builder.cpp
31    ../dali-toolkit/dali-toolkit-test-utils/test-actor-utils.cpp
32    ../dali-toolkit/dali-toolkit-test-utils/test-animation-data.cpp
33    ../dali-toolkit/dali-toolkit-test-utils/test-application.cpp
34    ../dali-toolkit/dali-toolkit-test-utils/test-button.cpp
35    ../dali-toolkit/dali-toolkit-test-utils/test-harness.cpp
36    ../dali-toolkit/dali-toolkit-test-utils/test-gesture-manager.cpp
37    ../dali-toolkit/dali-toolkit-test-utils/test-gl-abstraction.cpp
38    ../dali-toolkit/dali-toolkit-test-utils/test-gl-sync-abstraction.cpp
39    ../dali-toolkit/dali-toolkit-test-utils/test-platform-abstraction.cpp
40    ../dali-toolkit/dali-toolkit-test-utils/test-render-controller.cpp
41    ../dali-toolkit/dali-toolkit-test-utils/test-trace-call-stack.cpp
42    ../dali-toolkit/dali-toolkit-test-utils/test-native-image.cpp
43    facebook-flexbox/layout-test-utils.c
44 )
45
46
47 PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
48     dali-core
49     dali-adaptor
50     dali-toolkit
51 )
52
53 SET(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -O0 -ggdb --coverage -Wall -Werror")
54
55 FOREACH(directory ${${CAPI_LIB}_LIBRARY_DIRS})
56     SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -L${directory}")
57 ENDFOREACH(directory ${CAPI_LIB_LIBRARY_DIRS})
58
59 INCLUDE_DIRECTORIES(
60     ../../../
61     ${${CAPI_LIB}_INCLUDE_DIRS}
62     ../dali-toolkit/dali-toolkit-test-utils
63 )
64
65 ADD_EXECUTABLE(${EXEC_NAME} ${EXEC_NAME}.cpp ${TC_SOURCES})
66 TARGET_LINK_LIBRARIES(${EXEC_NAME}
67     ${${CAPI_LIB}_LIBRARIES}
68     -lpthread
69 )
70
71 INSTALL(PROGRAMS ${EXEC_NAME}
72     DESTINATION ${BIN_DIR}/${EXEC_NAME}
73 )