summaryrefslogtreecommitdiff
path: root/cmake/render-test.cmake
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2019-06-13 18:57:25 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2019-06-25 20:10:21 +0300
commit3b0e5a59a288b165e7fac26c22ff51ee524e1568 (patch)
tree58c8b38a186581bc7f24ab78eff2bfd4a69a73dd /cmake/render-test.cmake
parent78e5a264e0d08354cd1c0aa7f32c429784460f5f (diff)
downloadqtlocation-mapboxgl-3b0e5a59a288b165e7fac26c22ff51ee524e1568.tar.gz
[core] Implement C++ render test runner
Diffstat (limited to 'cmake/render-test.cmake')
-rw-r--r--cmake/render-test.cmake29
1 files changed, 29 insertions, 0 deletions
diff --git a/cmake/render-test.cmake b/cmake/render-test.cmake
new file mode 100644
index 0000000000..6505cc73f8
--- /dev/null
+++ b/cmake/render-test.cmake
@@ -0,0 +1,29 @@
+add_executable(mbgl-render-test
+ render-test/main.cpp
+ render-test/parser.cpp
+ render-test/runner.cpp
+)
+
+if(APPLE)
+ target_link_libraries(mbgl-render-test PRIVATE mbgl-loop-darwin)
+else()
+ target_link_libraries(mbgl-render-test PRIVATE mbgl-loop-uv)
+endif()
+
+target_include_directories(mbgl-render-test
+ PRIVATE src
+ PRIVATE platform/default/include
+ PRIVATE render-test
+)
+
+target_link_libraries(mbgl-render-test PRIVATE
+ mbgl-core
+ mbgl-filesource
+ args
+ expected
+ filesystem
+ pixelmatch-cpp
+ rapidjson
+)
+
+add_definitions(-DTEST_RUNNER_ROOT_PATH="${CMAKE_SOURCE_DIR}")