aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/benchmarks/CMakeLists.txt
blob: 89d98584e5cde214c6c11180ecc1ab0161f72af3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
add_executable(benchmarks lexer.cpp)
set_target_properties(benchmarks PROPERTIES OUTPUT_NAME math-server-benchmarks)

target_link_libraries(benchmarks PRIVATE lexer)
target_include_directories(benchmarks PRIVATE ../..)

target_link_libraries(benchmarks PRIVATE benchmark benchmark_main)

install(TARGETS benchmarks RUNTIME DESTINATION bin)
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
    install(FILES "$<TARGET_PDB_FILE:benchmarks>" DESTINATION bin OPTIONAL)
endif()