cmake_minimum_required(VERSION 2.6.2)

project( googletest-distribution )

enable_testing()

option(BUILD_GTEST "Builds the googletest subproject" OFF)

#Note that googlemock target already builds googletest
option(BUILD_GMOCK "Builds the googlemock subproject" ON)

if(BUILD_GMOCK)
  add_subdirectory( googlemock )
elseif(BUILD_GTEST)
  add_subdirectory( googletest )
endif()

cmake_minimum_required(VERSION 2.6.2)

if( POLICY CMP0063 )
  cmake_policy(SET CMP0063 NEW)
endif()

project( googletest-distribution )

enable_testing()

option(BUILD_GTEST "Builds the googletest subproject" OFF)

#Note that googlemock target already builds googletest
option(BUILD_GMOCK "Builds the googlemock subproject" ON)

if(BUILD_GMOCK)
  add_subdirectory( googlemock )
elseif(BUILD_GTEST)
  add_subdirectory( googletest )
endif()

Enable hidden visibility property with GoogleTest static libraries
COMP: Enable hidden visibility property with GoogleTest static libraries

Set CMP0063 to New to enable the CMake visibility properties to be
honored when building static libraries.

Change-Id: Iba83fea4e4d27f5496a77137b4e6b55d80d1543e
