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