-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[External] Adding Google benchmark option in CMake
- Loading branch information
1 parent
04ac567
commit e7df3b3
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This function automatically configures a given application to build its benchmarks | ||
macro(kratos_add_benchmarks) | ||
set(options USE_MPI USE_CUSTOM_MAIN) | ||
set(oneValueArgs TARGET WORKING_DIRECTORY) | ||
set(multiValueArgs SOURCES) | ||
|
||
cmake_parse_arguments(KRATOS_ADD_BENCHMARK "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) | ||
|
||
if(KRATOS_ADD_BENCHMARK_SOURCES) | ||
include(GoogleBenchmark) | ||
endif(KRATOS_ADD_BENCHMARK_SOURCES) | ||
|
||
endmacro(kratos_add_benchmarks) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters