1# This is an alternative CMakeLists.txt to the experimental one
2# shipped with the original package. It builds only the essential
3# for our tests. The WebKit version of gtest needs access to some
4# headers from WTF and JSC for configuration.
5
6INCLUDE_DIRECTORIES(${THIRDPARTY_DIR}/gtest
7 ${THIRDPARTY_DIR}/gtest/include
8 ${JAVASCRIPTCORE_DIR}
9 ${WTF_DIR}
10)
11
12SET(GTEST_SOURCES "${THIRDPARTY_DIR}/gtest/src")
13
14ADD_LIBRARY(gtest
15 ${GTEST_SOURCES}/gtest.cc
16 ${GTEST_SOURCES}/gtest-death-test.cc
17 ${GTEST_SOURCES}/gtest_main.cc
18 ${GTEST_SOURCES}/gtest-filepath.cc
19 ${GTEST_SOURCES}/gtest-port.cc
20 ${GTEST_SOURCES}/gtest-test-part.cc
21 ${GTEST_SOURCES}/gtest-typed-test.cc
22)