comparison Resources/CMake/GoogleTestConfiguration.cmake @ 634:d775a3cb5a06

refactoring of CMake scripts
author jodogne
date Tue, 29 Oct 2013 10:31:02 +0100
parents 27d32fc6209a
children 92aa6df91c30
comparison
equal deleted inserted replaced
633:e207b33216db 634:d775a3cb5a06
1 if (DEBIAN_USE_GTEST_SOURCE_PACKAGE) 1 if (USE_GTEST_DEBIAN_PACKAGE)
2 set(GTEST_SOURCES /usr/src/gtest/src/gtest-all.cc) 2 set(GTEST_SOURCES /usr/src/gtest/src/gtest-all.cc)
3 include_directories(/usr/src/gtest) 3 include_directories(/usr/src/gtest)
4 4
5 if (NOT EXISTS /usr/include/gtest/gtest.h OR 5 if (NOT EXISTS /usr/include/gtest/gtest.h OR
6 NOT EXISTS ${GTEST_SOURCES}) 6 NOT EXISTS ${GTEST_SOURCES})
7 message(FATAL_ERROR "Please install the libgtest-dev package") 7 message(FATAL_ERROR "Please install the libgtest-dev package")
8 endif() 8 endif()
9 9
10 elseif (STATIC_BUILD OR NOT USE_DYNAMIC_GOOGLE_TEST) 10 elseif (STATIC_BUILD OR NOT USE_SYSTEM_GOOGLE_TEST)
11 SET(GTEST_SOURCES_DIR ${CMAKE_BINARY_DIR}/gtest-1.6.0) 11 SET(GTEST_SOURCES_DIR ${CMAKE_BINARY_DIR}/gtest-1.6.0)
12 DownloadPackage( 12 DownloadPackage(
13 "4577b49f2973c90bf9ba69aa8166b786" 13 "4577b49f2973c90bf9ba69aa8166b786"
14 "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/gtest-1.6.0.zip" 14 "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/gtest-1.6.0.zip"
15 "${GTEST_SOURCES_DIR}") 15 "${GTEST_SOURCES_DIR}")