utc-Dali-Flexbox-Layout.cpp
)
-# Append list of test harness files (Won't get parsed for test cases)
-LIST(APPEND TC_SOURCES
- ../dali-toolkit/dali-toolkit-test-utils/toolkit-accessibility-adaptor.cpp
+# List of test harness files (Won't get parsed for test cases)
+SET(TEST_HARNESS_SOURCES
../dali-toolkit/dali-toolkit-test-utils/toolkit-application.cpp
+ ../dali-toolkit/dali-toolkit-test-utils/toolkit-async-task-manager.cpp
../dali-toolkit/dali-toolkit-test-utils/toolkit-clipboard.cpp
- ../dali-toolkit/dali-toolkit-test-utils/toolkit-clipboard-event-notifier.cpp
../dali-toolkit/dali-toolkit-test-utils/toolkit-event-thread-callback.cpp
../dali-toolkit/dali-toolkit-test-utils/toolkit-environment-variable.cpp
../dali-toolkit/dali-toolkit-test-utils/toolkit-input-method-context.cpp
../dali-toolkit/dali-toolkit-test-utils/toolkit-orientation.cpp
../dali-toolkit/dali-toolkit-test-utils/toolkit-physical-keyboard.cpp
../dali-toolkit/dali-toolkit-test-utils/toolkit-style-monitor.cpp
- ../dali-toolkit/dali-toolkit-test-utils/toolkit-singleton-service.cpp
../dali-toolkit/dali-toolkit-test-utils/toolkit-timer.cpp
../dali-toolkit/dali-toolkit-test-utils/toolkit-tts-player.cpp
../dali-toolkit/dali-toolkit-test-utils/dali-test-suite-utils.cpp
- ../dali-toolkit/dali-toolkit-test-utils/dali-toolkit-test-suite-utils.cpp
- ../dali-toolkit/dali-toolkit-test-utils/dummy-control.cpp
../dali-toolkit/dali-toolkit-test-utils/mesh-builder.cpp
../dali-toolkit/dali-toolkit-test-utils/test-actor-utils.cpp
../dali-toolkit/dali-toolkit-test-utils/test-animation-data.cpp
../dali-toolkit/dali-toolkit-test-utils/test-button.cpp
../dali-toolkit/dali-toolkit-test-utils/test-harness.cpp
../dali-toolkit/dali-toolkit-test-utils/test-gl-abstraction.cpp
- ../dali-toolkit/dali-toolkit-test-utils/test-gl-sync-abstraction.cpp
+ ../dali-toolkit/dali-toolkit-test-utils/test-graphics-sync-impl.cpp
+ ../dali-toolkit/dali-toolkit-test-utils/test-graphics-sync-object.cpp
+ ../dali-toolkit/dali-toolkit-test-utils/test-graphics-buffer.cpp
+ ../dali-toolkit/dali-toolkit-test-utils/test-graphics-command-buffer.cpp
+ ../dali-toolkit/dali-toolkit-test-utils/test-graphics-controller.cpp
+ ../dali-toolkit/dali-toolkit-test-utils/test-graphics-framebuffer.cpp
+ ../dali-toolkit/dali-toolkit-test-utils/test-graphics-texture.cpp
+ ../dali-toolkit/dali-toolkit-test-utils/test-graphics-sampler.cpp
+ ../dali-toolkit/dali-toolkit-test-utils/test-graphics-pipeline.cpp
+ ../dali-toolkit/dali-toolkit-test-utils/test-graphics-program.cpp
+ ../dali-toolkit/dali-toolkit-test-utils/test-graphics-shader.cpp
+ ../dali-toolkit/dali-toolkit-test-utils/test-graphics-reflection.cpp
../dali-toolkit/dali-toolkit-test-utils/test-platform-abstraction.cpp
../dali-toolkit/dali-toolkit-test-utils/test-render-controller.cpp
../dali-toolkit/dali-toolkit-test-utils/test-render-surface.cpp
PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
- dali-core
- dali-adaptor
- dali-toolkit
+ dali2-core
+ dali2-adaptor
+ dali2-toolkit
)
# Locate GTest
-cmake_minimum_required(VERSION 2.6)
-find_package(GTest REQUIRED)
+CMAKE_MINIMUM_REQUIRED(VERSION 3.8.2)
+FIND_PACKAGE(GTest REQUIRED)
#ADD_COMPILE_OPTIONS( -O0 -ggdb --coverage -Wall -Werror )
# ADD_COMPILE_OPTIONS( ${${CAPI_LIB}_CFLAGS_OTHER} )
SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -L${directory}")
ENDFOREACH(directory ${CAPI_LIB_LIBRARY_DIRS})
+STRING(STRIP ${CMAKE_CXX_LINK_FLAGS} CMAKE_CXX_LINK_FLAGS)
+
INCLUDE_DIRECTORIES(
../../../
../../../dali-toolkit/third-party
${GTEST_INCLUDE_DIRS}
)
-ADD_EXECUTABLE(${EXEC_NAME} ${EXEC_NAME}.cpp ${TC_SOURCES})
+ADD_CUSTOM_COMMAND(
+ COMMAND ../../scripts/tcheadgen.sh ${EXEC_NAME}.h ${TC_SOURCES}
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ OUTPUT ${EXEC_NAME}.h
+ COMMENT "Generating test tables"
+ )
+
+ADD_EXECUTABLE(${EXEC_NAME} ${EXEC_NAME}.h ${EXEC_NAME}.cpp ${TC_SOURCES} ${TEST_HARNESS_SOURCES})
TARGET_LINK_LIBRARIES(${EXEC_NAME}
+ ${CMAKE_CXX_LINK_FLAGS}
${${CAPI_LIB}_LIBRARIES}
-lpthread --coverage
${GTEST_LIBRARIES}