Mercurial > hg > orthanc
view Resources/CMake/GoogleTestConfiguration.cmake @ 156:a660e18b2360
merge
author | jodogne |
---|---|
date | Tue, 23 Oct 2012 16:01:39 +0200 |
parents | a2dbb5024fdf |
children | a63fb54819d7 |
line wrap: on
line source
if (DEBIAN_USE_STATIC_GOOGLE_TEST) message(FATAL_ERROR "todo") elseif (STATIC_BUILD OR NOT USE_DYNAMIC_GOOGLE_TEST) SET(GTEST_SOURCES_DIR ${CMAKE_BINARY_DIR}/gtest-1.6.0) DownloadPackage("http://googletest.googlecode.com/files/gtest-1.6.0.zip" "${GTEST_SOURCES_DIR}" "" "") include_directories( ${GTEST_SOURCES_DIR}/include ${GTEST_SOURCES_DIR} ) set(GTEST_SOURCES ${GTEST_SOURCES_DIR}/src/gtest-all.cc ) else() include(FindGTest) include_directories(${GTEST_INCLUDE_DIRS}) link_libraries(${GTEST_LIBRARIES}) endif()