Commit 7638c640 authored by Georgios Bitzes's avatar Georgios Bitzes
Browse files

Make gtest available to QClient as well

parent 407918eb
Pipeline #452763 failed with stages
in 26 minutes and 15 seconds
......@@ -3,7 +3,6 @@ cmake_minimum_required(VERSION 2.8.11)
#-------------------------------------------------------------------------------
# Initialize
#-------------------------------------------------------------------------------
project(quarkdb)
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
......@@ -14,6 +13,13 @@ include(GNUInstallDirs)
#-------------------------------------------------------------------------------
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
#-------------------------------------------------------------------------------
# Make gtest / gmock available for all downstream CMakeLists.txt that need it
#-------------------------------------------------------------------------------
set(GTEST "${CMAKE_SOURCE_DIR}/deps/googletest/")
set(GTEST_BINARY_DIR "${CMAKE_BINARY_DIR}/deps/googletest/")
add_subdirectory("${GTEST}" "${GTEST_BINARY_DIR}")
#-------------------------------------------------------------------------------
# Activate include-what-you-use
#-------------------------------------------------------------------------------
......
......@@ -5,13 +5,6 @@ include_directories(
${BACKWARD_INCLUDE_DIRS}
)
#-------------------------------------------------------------------------------
# Set-up gtest
#-------------------------------------------------------------------------------
set(GTEST "${CMAKE_SOURCE_DIR}/deps/googletest/googletest")
set(GTEST_BINARY_DIR "${CMAKE_BINARY_DIR}/deps/googletest/googletest")
add_subdirectory("${GTEST}" "${GTEST_BINARY_DIR}")
#-------------------------------------------------------------------------------
# Activate test coverage for these source files / binaries
#-------------------------------------------------------------------------------
......
Supports Markdown
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