Commit 7fb4315d authored by Marco Bubke's avatar Marco Bubke

Clang: Adapt to new Google Test project directories

Google mock moved to github and merged with Google Test.

Change-Id: I66639532be1cd399c47dfd4511430b2d65b76b23
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent f7741ef6
GMOCK_DIR = $$(GMOCK_DIR)
!isEmpty(GMOCK_DIR):GTEST_DIR = $$GMOCK_DIR/gtest
linux-* {
isEmpty(GMOCK_DIR):GMOCK_DIR = /usr/include/gmock
!exists($$GTEST_DIR):GTEST_DIR = /usr/include/gtest
}
requires(exists($$GMOCK_DIR))
!exists($$GMOCK_DIR):message("No gmock is found! To enabe unit tests set GMOCK_DIR")
GOOGLETEST_DIR = $$(GOOGLETEST_DIR)
GTEST_SRC_DIR = $$GTEST_DIR
GMOCK_SRC_DIR = $$GMOCK_DIR
linux-* {
!exists($$GTEST_SRC_DIR/src/gtest-all.cc):GTEST_SRC_DIR = /usr/src/gtest
!exists($$GMOCK_SRC_DIR/src/gmock-all.cc):GMOCK_SRC_DIR = /usr/src/gmock
isEmpty(GOOGLETEST_DIR):linux-* {
GTEST_SRC_DIR = /usr/include/gmock
GMOCK_SRC_DIR = /usr/include/gtest
} else {
GTEST_SRC_DIR = $$GOOGLETEST_DIR/googletest
GMOCK_SRC_DIR = $$GOOGLETEST_DIR/googlemock
}
requires(exists($$GTEST_SRC_DIR):exists($$GMOCK_SRC_DIR))
!exists($$GOOGLETEST_DIR):message("No gmock is found! To enabe unit tests set GOOGLETEST_DIR")
DEFINES += \
GTEST_HAS_STD_INITIALIZER_LIST_ \
GTEST_LANG_CXX11
INCLUDEPATH *= \
$$GTEST_DIR \
$$GTEST_DIR/include \
$$GMOCK_DIR \
$$GMOCK_DIR/include \
$$GTEST_SRC_DIR \
$$GMOCK_SRC_DIR
$$GTEST_SRC_DIR/include \
$$GMOCK_SRC_DIR \
$$GMOCK_SRC_DIR/include \
SOURCES += \
$$GMOCK_SRC_DIR/src/gmock-all.cc \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment