Commit a8096d3b authored by Matthieu Dorier's avatar Matthieu Dorier
Browse files

added benchmark directory and possibility to install the mona-benchmark

parent 1716815b
......@@ -12,8 +12,9 @@ cmake_minimum_required (VERSION 3.14)
project (mona C)
enable_testing ()
option(ENABLE_TESTS "Build tests. May require CppUnit_ROOT" OFF)
option(ENABLE_EXAMPLES "Build examples" OFF)
option(ENABLE_TESTS "Build tests. May require CppUnit_ROOT" OFF)
option(ENABLE_EXAMPLES "Build examples" OFF)
option(ENABLE_BENCHMARK "Build benchmark" OFF)
add_definitions (-Wall -Wextra -g)
......@@ -46,3 +47,7 @@ endif (ENABLE_TESTS)
if(${ENABLE_EXAMPLES})
add_subdirectory (examples)
endif(${ENABLE_EXAMPLES})
if(${ENABLE_BENCHMARK})
add_subdirectory (benchmark)
endif(${ENABLE_BENCHMARK})
add_executable (mona-benchmark ${CMAKE_CURRENT_SOURCE_DIR}/benchmark.c)
target_link_libraries (mona-benchmark mona)
install (FILES "${CMAKE_CURRENT_BINARY_DIR}/mona-benchmark"
DESTINATION bin)
add_executable (example ${CMAKE_CURRENT_SOURCE_DIR}/example.c)
target_link_libraries (example mona)
add_executable (benchmark ${CMAKE_CURRENT_SOURCE_DIR}/benchmark.c)
target_link_libraries (benchmark mona)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment