########################################################################
# conf/googlebenchmark.mk                                              #
# =========================                                            #
#                                                                      #
# Dependencies and compilation requirements for gbenchmark.            #
# -------------------------------------------------------------------- #
# MAINTEINER_NAME := Renato Cordeiro Ferreira                          #
# MAINTEINER_MAIL := renato.cferreira@hotmail.com                      #
# DESCRIPTION     := `gbenchmark` is a microbenchmark support library, #
#                    which support unit-tests alike benchmarking. To   #
#                    create the benchmark binary, just set `BENCHBIN`  #
#                    with the name of the file that contains the main  #
#                    function for the benchmarks.                      #
#                    For further info about the library, access:       #
#                    https://code.google.com/p/googletest/             #
########################################################################

ifndef GOOGLE_BENCHMARK_MK
override GOOGLE_BENCHMARK_MK := T

# Dependencies
# ==============
GIT_DEPENDENCY  += \
    gbenchmark => https://github.com/google/benchmark.git \
                  mkdir -p build && cd build \
                  && cmake -DCMAKE_BUILD_TYPE=Release \
                           -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON .. \
                  && make

# Paths
# =======
CXXLIBS         += -isystem external/gbenchmark/include/
LDLIBS          += -L external/gbenchmark/build/src/

# Flags
# =======
LDBENCH         += -lbenchmark -pthread

endif # ifndef GOOGLE_BENCHMARK_MK

########################################################################
# conf/googlebenchmark.mk                                              #
# =========================                                            #
#                                                                      #
# Dependencies and compilation requirements for gbenchmark.            #
# -------------------------------------------------------------------- #
# MAINTEINER_NAME := Renato Cordeiro Ferreira                          #
# MAINTEINER_MAIL := renato.cferreira@hotmail.com                      #
# DESCRIPTION     := `gbenchmark` is a microbenchmark support library, #
#                    which support unit-tests alike benchmarking. To   #
#                    create the benchmark binary, just set `BENCHBIN`  #
#                    with the name of the file that contains the main  #
#                    function for the benchmarks.                      #
#                    For further info about the library, access:       #
#                    https://code.google.com/p/googletest/             #
########################################################################

ifndef GOOGLE_BENCHMARK_MK
override GOOGLE_BENCHMARK_MK := T

# Dependencies
# ==============
GIT_DEPENDENCY  += \
    gbenchmark => https://github.com/google/benchmark.git \
                  mkdir -p build && cd build \
                  && cmake -DCMAKE_BUILD_TYPE=Release \
													 -DBENCHMARK_ENABLE_TESTING=OFF .. \
                  && make

# Paths
# =======
CXXLIBS         += -isystem external/gbenchmark/include/
LDLIBS          += -L external/gbenchmark/build/src/

# Flags
# =======
LDBENCH         += -lbenchmark -pthread

endif # ifndef GOOGLE_BENCHMARK_MK

Disable tests in Google Benchmark makeball
Disable tests in Google Benchmark makeball
