X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=dependencies64%2Fcef%2Fwindows%2Ftests%2Fgtest%2FCMakeLists.txt;fp=dependencies64%2Fcef%2Fwindows%2Ftests%2Fgtest%2FCMakeLists.txt;h=c4daa89534402ae1e4a6cce968f69d2c8e176261;hb=8128744e46d808a1105fb449365d7028df8c32b4;hp=0000000000000000000000000000000000000000;hpb=3a0dc241f598cabf83bcc67970176453929a73f1;p=casparcg diff --git a/dependencies64/cef/windows/tests/gtest/CMakeLists.txt b/dependencies64/cef/windows/tests/gtest/CMakeLists.txt new file mode 100644 index 000000000..c4daa8953 --- /dev/null +++ b/dependencies64/cef/windows/tests/gtest/CMakeLists.txt @@ -0,0 +1,30 @@ +# Copyright 2016 The Chromium Embedded Framework Authors. All rights +# reserved. Use of this source code is governed by a BSD-style license that +# can be found in the LICENSE file. + +set(CEF_TARGET "cef_gtest") + +set(GTEST_SRCS + src/gtest-all.cc + ) +source_group(cef_gtest FILES ${GTEST_SRCS}) + +add_library(${CEF_TARGET} ${GTEST_SRCS}) + +# Start with CEF default properties. +SET_LIBRARY_TARGET_PROPERTIES(${CEF_TARGET}) + +# The gtest-all.cc file uses #include "gtest/gtest.h" +target_include_directories(${CEF_TARGET} PRIVATE "include") + +# In order to allow regex matches in gtest to be shared between Windows +# and other systems we tell gtest to always use it's internal engine. +target_compile_definitions(${CEF_TARGET} PRIVATE -DGTEST_HAS_POSIX_RE=0 -DGTEST_LANG_CXX11=1) + +# All dependent targets are unit tests. +target_compile_definitions(${CEF_TARGET} PUBLIC -DUNIT_TEST) + +if(OS_WINDOWS) + # Disable unused variable warning. + target_compile_options(${CEF_TARGET} PRIVATE "/wd4800") +endif()