Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
22 lines
958 B
CMake
22 lines
958 B
CMake
project(rlottie_tests CXX)
|
|
find_package(GTest REQUIRED)
|
|
|
|
add_definitions(-DDEMO_DIR="${CMAKE_SOURCE_DIR}/example/resource/")
|
|
link_libraries(GTest::GTest GTest::Main)
|
|
|
|
add_executable(vectorTestSuite testsuite.cpp test_vrect.cpp test_vpath.cpp
|
|
${CMAKE_SOURCE_DIR}/src/vector/vbezier.cpp
|
|
${CMAKE_SOURCE_DIR}/src/vector/vdebug.cpp
|
|
${CMAKE_SOURCE_DIR}/src/vector/vmatrix.cpp
|
|
${CMAKE_SOURCE_DIR}/src/vector/vpath.cpp
|
|
${CMAKE_SOURCE_DIR}/src/vector/pixman/vregion.cpp)
|
|
target_include_directories(vectorTestSuite PRIVATE ${CMAKE_BINARY_DIR}
|
|
${CMAKE_SOURCE_DIR}/src/vector ${CMAKE_SOURCE_DIR}/src/vector/pixman)
|
|
gtest_add_tests(vectorTestSuite "" AUTO)
|
|
|
|
add_executable(animationTestSuite testsuite.cpp
|
|
test_lottieanimation.cpp test_lottieanimation_capi.cpp)
|
|
target_include_directories(animationTestSuite PRIVATE ${CMAKE_SOURCE_DIR}/inc)
|
|
target_link_libraries(animationTestSuite PRIVATE rlottie)
|
|
gtest_add_tests(animationTestSuite "" AUTO)
|