mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-13 03:30:33 +00:00
Simplifying googletest building
This commit is contained in:
parent
ae1cf91da6
commit
43c3aa75f1
@ -36,12 +36,10 @@ endif(GTEST_INCLUDE_DIRS)
|
|||||||
if(NOT ${GTEST_DIR_LOCAL})
|
if(NOT ${GTEST_DIR_LOCAL})
|
||||||
# if GTEST_DIR is not defined, we download and build it
|
# if GTEST_DIR is not defined, we download and build it
|
||||||
set(gtest_RELEASE 1.7.0)
|
set(gtest_RELEASE 1.7.0)
|
||||||
if(OS_IS_MACOSX)
|
|
||||||
ExternalProject_Add(
|
ExternalProject_Add(
|
||||||
gtest-${gtest_RELEASE}
|
gtest-${gtest_RELEASE}
|
||||||
GIT_REPOSITORY https://github.com/google/googletest
|
GIT_REPOSITORY https://github.com/google/googletest
|
||||||
GIT_TAG release-${gtest_RELEASE}
|
GIT_TAG release-${gtest_RELEASE}
|
||||||
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/../../download/gtest-${gtest_RELEASE}
|
|
||||||
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../thirdparty/gtest/gtest-${gtest_RELEASE}
|
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../thirdparty/gtest/gtest-${gtest_RELEASE}
|
||||||
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/../../gtest-${gtest_RELEASE}
|
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/../../gtest-${gtest_RELEASE}
|
||||||
CMAKE_ARGS -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
|
CMAKE_ARGS -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
|
||||||
@ -49,19 +47,6 @@ if(NOT ${GTEST_DIR_LOCAL})
|
|||||||
PATCH_COMMAND ""
|
PATCH_COMMAND ""
|
||||||
INSTALL_COMMAND ""
|
INSTALL_COMMAND ""
|
||||||
)
|
)
|
||||||
else(OS_IS_MACOSX)
|
|
||||||
ExternalProject_Add(
|
|
||||||
gtest-${gtest_RELEASE}
|
|
||||||
GIT_REPOSITORY https://github.com/google/googletest
|
|
||||||
GIT_TAG release-${gtest_RELEASE}
|
|
||||||
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/../../download/gtest-${gtest_RELEASE}
|
|
||||||
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../thirdparty/gtest/gtest-${gtest_RELEASE}
|
|
||||||
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/../../gtest-${gtest_RELEASE}
|
|
||||||
UPDATE_COMMAND ""
|
|
||||||
PATCH_COMMAND ""
|
|
||||||
INSTALL_COMMAND ""
|
|
||||||
)
|
|
||||||
endif(OS_IS_MACOSX)
|
|
||||||
# Set up variables
|
# Set up variables
|
||||||
# Set recently downloaded and build Googletest root folder
|
# Set recently downloaded and build Googletest root folder
|
||||||
set(GTEST_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../thirdparty/gtest/gtest-${gtest_RELEASE}")
|
set(GTEST_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../thirdparty/gtest/gtest-${gtest_RELEASE}")
|
||||||
|
Loading…
Reference in New Issue
Block a user