Skip to content

Commit

Permalink
CMake: Build tests/benchmark/benchmark.c for EXPAT_BUILD_TESTS
Browse files Browse the repository at this point in the history
.. like the Autotools build system does.
  • Loading branch information
hartwork committed Nov 21, 2023
1 parent 3588720 commit 0380404
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions expat/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,10 @@ if(EXPAT_BUILD_TESTS)
target_link_libraries(${_target} ${LIB_BSD})
endif()
endforeach()

add_executable(benchmark tests/benchmark/benchmark.c)
set_property(TARGET benchmark PROPERTY RUNTIME_OUTPUT_DIRECTORY tests/benchmark)
target_link_libraries(benchmark expat)
endif()

#
Expand Down

0 comments on commit 0380404

Please sign in to comment.