Skip to content

Commit

Permalink
update new gtest remote repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Brig Bagley committed May 12, 2016
1 parent dc1162e commit 55fbab5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,27 @@ if (WIN32)
else()
set(GTEST_SHARED_ARG OFF)
endif()

ExternalProject_Add( gtest
PREFIX "${GTEST_INSTALL_DIR}"
SVN_REPOSITORY "http://googletest.googlecode.com/svn/trunk/"
GIT_REPOSITORY "https://github.com/google/googletest.git"
INSTALL_DIR "${GTEST_INSTALL_DIR}/include"
BINARY_DIR "${GTEST_INSTALL_DIR}/lib"
INSTALL_COMMAND ""
CMAKE_ARGS
-Dgtest_build_tests:BOOL=OFF
-DBUILD_GMOCK:BOOL=OFF
-DBUILD_GTEST:BOOL=ON
-Dgtest_force_shared_crt:BOOL=${GTEST_SHARED_ARG}
)
ExternalProject_Add_Step( gtest copy_deps
COMMAND ${CMAKE_COMMAND} -E copy_directory ${GTEST_INSTALL_DIR}/src/gtest/include ${GTEST_INSTALL_DIR}/include
COMMAND ${CMAKE_COMMAND} -E copy_directory ${GTEST_INSTALL_DIR}/src/gtest/googletest/include ${GTEST_INSTALL_DIR}/include
DEPENDEES install
)
include_directories("${GTEST_INSTALL_DIR}/include")
SET(GTEST_LIBRARY "${GTEST_INSTALL_DIR}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}gtest${CMAKE_STATIC_LIBRARY_SUFFIX};${GTEST_INSTALL_DIR}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}gtest_main${CMAKE_STATIC_LIBRARY_SUFFIX}")
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../core2d/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../core3d/include)
SET(GTEST_LIBRARY "${GTEST_INSTALL_DIR}/lib/googletest/${CMAKE_STATIC_LIBRARY_PREFIX}gtest${CMAKE_STATIC_LIBRARY_SUFFIX};${GTEST_INSTALL_DIR}/lib/googletest/${CMAKE_STATIC_LIBRARY_PREFIX}gtest_main${CMAKE_STATIC_LIBRARY_SUFFIX}")
########################################################################

# Definitions for Tests
Expand Down

0 comments on commit 55fbab5

Please sign in to comment.