Mercurial > hg > orthanc
comparison Resources/CMake/GoogleTestConfiguration.cmake @ 2404:e6af2c5cd0f1
migration of Google Test into OrthancFramework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 08 Sep 2017 16:48:33 +0200 |
parents | 06536b4f30c0 |
children | ade8b4ddd8a6 |
comparison
equal
deleted
inserted
replaced
2403:06536b4f30c0 | 2404:e6af2c5cd0f1 |
---|---|
14 ) | 14 ) |
15 | 15 |
16 message("Path to the Debian Google Test sources: ${GOOGLE_TEST_DEBIAN_SOURCES_DIR}") | 16 message("Path to the Debian Google Test sources: ${GOOGLE_TEST_DEBIAN_SOURCES_DIR}") |
17 message("Path to the Debian Google Test includes: ${GOOGLE_TEST_DEBIAN_INCLUDE_DIR}") | 17 message("Path to the Debian Google Test includes: ${GOOGLE_TEST_DEBIAN_INCLUDE_DIR}") |
18 | 18 |
19 set(GOOGLE_TEST_SOURCES ${GOOGLE_TEST_DEBIAN_SOURCES_DIR}/src/gtest-all.cc) | 19 set(GOOGLE_TEST_SOURCES |
20 ${GOOGLE_TEST_DEBIAN_SOURCES_DIR}/src/gtest-all.cc | |
21 ) | |
22 | |
20 include_directories(${GOOGLE_TEST_DEBIAN_SOURCES_DIR}) | 23 include_directories(${GOOGLE_TEST_DEBIAN_SOURCES_DIR}) |
21 | 24 |
22 if (NOT EXISTS ${GOOGLE_TEST_SOURCES} OR | 25 if (NOT EXISTS ${GOOGLE_TEST_SOURCES} OR |
23 NOT EXISTS ${GOOGLE_TEST_DEBIAN_INCLUDE_DIR}/gtest.h) | 26 NOT EXISTS ${GOOGLE_TEST_DEBIAN_INCLUDE_DIR}/gtest.h) |
24 message(FATAL_ERROR "Please install the libgtest-dev package") | 27 message(FATAL_ERROR "Please install the libgtest-dev package") |
52 if (NOT GOOGLE_TEST_FOUND) | 55 if (NOT GOOGLE_TEST_FOUND) |
53 message(FATAL_ERROR "Unable to find GoogleTest") | 56 message(FATAL_ERROR "Unable to find GoogleTest") |
54 endif() | 57 endif() |
55 | 58 |
56 include_directories(${GOOGLE_TEST_INCLUDE_DIRS}) | 59 include_directories(${GOOGLE_TEST_INCLUDE_DIRS}) |
57 link_libraries(${GOOGLE_TEST_LIBRARIES}) | 60 |
61 # The variable GOOGLE_TEST_LIBRARIES contains the shared library of | |
62 # Google Test | |
58 endif() | 63 endif() |