summaryrefslogtreecommitdiff
path: root/platform/linux
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-10-04 17:26:08 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2016-10-05 11:12:16 +0300
commit5829c0dbc6e7785cec5af12891ba2ead784d1a69 (patch)
treec01a0f92e093316b44a23e0aac27ae38c5b538ce /platform/linux
parentdd604a7b3650617ab3fef81eef1a63fc28761396 (diff)
downloadqtlocation-mapboxgl-5829c0dbc6e7785cec5af12891ba2ead784d1a69.tar.gz
[build] Re-add benchmark tests to the buildsystem
Probably lost on the cmake migration
Diffstat (limited to 'platform/linux')
-rw-r--r--platform/linux/config.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/platform/linux/config.cmake b/platform/linux/config.cmake
index 24bb5ede0c..050a03bcb2 100644
--- a/platform/linux/config.cmake
+++ b/platform/linux/config.cmake
@@ -7,6 +7,7 @@ mason_use(libpng VERSION 1.6.25)
mason_use(libjpeg-turbo VERSION 1.5.0)
mason_use(webp VERSION 0.5.1)
mason_use(gtest VERSION 1.7.0${MASON_CXXABI_SUFFIX})
+mason_use(benchmark VERSION 1.0.0)
include(cmake/loop-uv.cmake)
@@ -102,6 +103,23 @@ macro(mbgl_platform_test)
endmacro()
+macro(mbgl_platform_benchmark)
+ target_sources(mbgl-benchmark
+ PRIVATE benchmark/src/main.cpp
+ )
+
+ set_source_files_properties(
+ benchmark/src/main.cpp
+ PROPERTIES
+ COMPILE_FLAGS -DWORK_DIRECTORY="${CMAKE_SOURCE_DIR}"
+ )
+
+ target_link_libraries(mbgl-benchmark
+ PRIVATE mbgl-loop
+ )
+endmacro()
+
+
macro(mbgl_platform_node)
# Enabling node module by defining this macro
endmacro()