18 lines
581 B
Plaintext
18 lines
581 B
Plaintext
###
|
|
# NOTE for v1.8.0: https://github.com/google/googletest/issues/854
|
|
# -fPIC CXXFLAG is needed else it fails linking
|
|
###
|
|
ExternalProject_Add(
|
|
gtest
|
|
DOWNLOAD_COMMAND ""
|
|
SOURCE_DIR ${PROJECT_SOURCE_DIR}/common/gtest/googletest
|
|
CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release
|
|
INSTALL_COMMAND ""
|
|
)
|
|
ExternalProject_Get_Property(gtest binary_dir)
|
|
ExternalProject_Get_Property(gtest source_dir)
|
|
set(gtest_main_library ${binary_dir}/libgtest_main.a)
|
|
set(gtest_library ${binary_dir}/libgtest.a)
|
|
set(gtest_include_dir "${source_dir}/include")
|
|
include_directories(SYSTEM "${gtest_include_dir}")
|