1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

rename GTEST_INCLUDE_DIR to GTEST_INCLUDE_DIRS

GTEST_INCLUDE_DIRS is the name used by the CMake GTest package. This
is a preparation for the optional usage of a system installed gtest.
This commit is contained in:
Hendrik v. Raven
2017-07-26 10:39:17 +02:00
committed by Michał Janiszewski
parent a2f8720143
commit cfa20d2117

View File

@@ -36,7 +36,7 @@ ExternalProject_Add(
# Specify include dir # Specify include dir
set(GTEST_INCLUDE_DIR ${GOOGLETEST_DISTRIB_SOURCE_DIR}/googletest/include) set(GTEST_INCLUDE_DIRS ${GOOGLETEST_DISTRIB_SOURCE_DIR}/googletest/include)
# Library # Library
ExternalProject_Get_Property(googletest BINARY_DIR) ExternalProject_Get_Property(googletest BINARY_DIR)
@@ -52,7 +52,7 @@ set_property(TARGET ${GTEST_MAIN_LIBRARY} PROPERTY IMPORTED_LOCATION ${GTEST_MAI
add_dependencies(${GTEST_LIBRARY} googletest) add_dependencies(${GTEST_LIBRARY} googletest)
add_dependencies(${GTEST_MAIN_LIBRARY} ${GTEST_LIBRARY}) add_dependencies(${GTEST_MAIN_LIBRARY} ${GTEST_LIBRARY})
include_directories(SYSTEM ${GTEST_INCLUDE_DIR}) include_directories(SYSTEM ${GTEST_INCLUDE_DIRS})
include_directories("${ROOT_DIR}/src") include_directories("${ROOT_DIR}/src")
include_directories(${SDL2_INCLUDE_DIRS}) include_directories(${SDL2_INCLUDE_DIRS})