summaryrefslogtreecommitdiffhomepage
path: root/bench/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-10-11 10:35:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-10-11 13:35:27 +0200
commitca4544f04cc67c296e58170e76203bc11519d988 (patch)
tree2dcbe936be206c4e7f95a28525fafff6f7340e5e /bench/CMakeLists.txt
parent018755dab3d2a5bb0ead627b6ecad6735a9f0114 (diff)
add benchmark executable
Diffstat (limited to 'bench/CMakeLists.txt')
-rw-r--r--bench/CMakeLists.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/bench/CMakeLists.txt b/bench/CMakeLists.txt
new file mode 100644
index 00000000..ecce9dee
--- /dev/null
+++ b/bench/CMakeLists.txt
@@ -0,0 +1,24 @@
+set(self floormat-benchmark)
+
+file(GLOB sources "*.cpp" CONFIGURE_ARGS)
+
+add_library(${self}_o OBJECT "${res}" "${sources}")
+add_executable(${self} dummy.cc)
+
+target_link_libraries(${self}_o PUBLIC
+ ${floormat_headless-library}
+ Magnum::Magnum
+ Magnum::Trade
+ nlohmann_json::nlohmann_json
+ fmt::fmt
+ tsl::robin_map
+)
+
+if(TARGET benchmark::benchmark)
+ target_link_libraries(${self}_o PUBLIC benchmark::benchmark)
+else()
+ target_link_libraries(${self}_o PUBLIC benchmark)
+endif()
+
+target_link_libraries(${self} PUBLIC ${self}_o floormat-serialize floormat-draw floormat)
+install(TARGETS ${self} RUNTIME DESTINATION bin)