• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2016 The Chromium Embedded Framework Authors. All rights
2# reserved. Use of this source code is governed by a BSD-style license that
3# can be found in the LICENSE file.
4
5set(CEF_TARGET "cef_gtest")
6
7set(GTEST_SRCS
8  src/gtest-all.cc
9  teamcity/include/teamcity_gtest.h
10  teamcity/src/teamcity_gtest.cpp
11  teamcity/src/teamcity_messages.cpp
12  teamcity/src/teamcity_messages.h
13  )
14source_group(cef_gtest FILES ${GTEST_SRCS})
15
16add_library(${CEF_TARGET} ${GTEST_SRCS})
17
18# Start with CEF default properties.
19SET_LIBRARY_TARGET_PROPERTIES(${CEF_TARGET})
20
21# The gtest-all.cc file uses #include "gtest/gtest.h"
22target_include_directories(${CEF_TARGET} PRIVATE "include")
23
24# In order to allow regex matches in gtest to be shared between Windows
25# and other systems we tell gtest to always use it's internal engine.
26target_compile_definitions(${CEF_TARGET} PRIVATE -DGTEST_HAS_POSIX_RE=0 -DGTEST_LANG_CXX11=1)
27
28# All dependent targets are unit tests.
29target_compile_definitions(${CEF_TARGET} PUBLIC -DUNIT_TEST)
30
31if(OS_WINDOWS)
32  # Disable unused variable warning.
33  target_compile_options(${CEF_TARGET} PRIVATE "/wd4800")
34endif()
35