Skip to content
Snippets Groups Projects
Commit 3a44a143 authored by Anna Wellmann's avatar Anna Wellmann
Browse files

Merge branch 'develop' into indexRearrangementTestsAndRefactoring

parents 56a4ba1f b4edf679
No related branches found
No related tags found
1 merge request!164Add tests to exchangeIndicesForCommAfterFtoC and do some refactoring
...@@ -14,6 +14,14 @@ endif (POLICY CMP0077) ...@@ -14,6 +14,14 @@ endif (POLICY CMP0077)
project(googletest-distribution) project(googletest-distribution)
set(GOOGLETEST_VERSION 1.12.1) set(GOOGLETEST_VERSION 1.12.1)
##########################################################
# Enable MACOSX_RPATH support for gtest and gmock
# to avoid CMP0042 warnings
IF(APPLE)
SET(CMAKE_MACOSX_RPATH 1)
ENDIF()
##########################################################
if(NOT CYGWIN AND NOT MSYS AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL QNX) if(NOT CYGWIN AND NOT MSYS AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL QNX)
set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_EXTENSIONS OFF)
endif() endif()
...@@ -24,11 +32,16 @@ include(CMakeDependentOption) ...@@ -24,11 +32,16 @@ include(CMakeDependentOption)
include(GNUInstallDirs) include(GNUInstallDirs)
#Note that googlemock target already builds googletest #Note that googlemock target already builds googletest
option(BUILD_GMOCK "Builds the googlemock subproject" ON) #option(BUILD_GMOCK "Builds the googlemock subproject" ON)
option(INSTALL_GTEST "Enable installation of googletest. (Projects embedding googletest may want to turn this OFF.)" ON) #option(INSTALL_GTEST "Enable installation of googletest. (Projects embedding googletest may want to turn this OFF.)" ON)
if(BUILD_GMOCK) #if(BUILD_GMOCK)
add_subdirectory( googlemock ) add_subdirectory( googlemock )
else() #else()
add_subdirectory( googletest ) # add_subdirectory( googletest )
endif() #endif()
groupTarget(gmock ${thirdFolder}/googletest)
groupTarget(gmock_main ${thirdFolder}/googletest)
groupTarget(gtest ${thirdFolder}/googletest)
groupTarget(gtest_main ${thirdFolder}/googletest)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment