]> git.sesse.net Git - casparcg/blobdiff - dependencies64/cef/windows/cmake/FindCEF.cmake
Upgrade CEF to 3.3029.1611.g44e39a8 / Chromium 58.0.3029.81.
[casparcg] / dependencies64 / cef / windows / cmake / FindCEF.cmake
diff --git a/dependencies64/cef/windows/cmake/FindCEF.cmake b/dependencies64/cef/windows/cmake/FindCEF.cmake
new file mode 100644 (file)
index 0000000..df673f9
--- /dev/null
@@ -0,0 +1,39 @@
+# Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights\r
+# reserved. Use of this source code is governed by a BSD-style license that\r
+# can be found in the LICENSE file.\r
+\r
+#\r
+# This file is the CEF CMake configuration entry point and should be loaded\r
+# using `find_package(CEF REQUIRED)`. See the top-level CMakeLists.txt file\r
+# included with the CEF binary distribution for usage information.\r
+#\r
+\r
+# Find the CEF binary distribution root directory.\r
+set(_CEF_ROOT "")\r
+if(CEF_ROOT AND IS_DIRECTORY "${CEF_ROOT}")\r
+  set(_CEF_ROOT "${CEF_ROOT}")\r
+  set(_CEF_ROOT_EXPLICIT 1)\r
+else()\r
+  set(_ENV_CEF_ROOT "")\r
+  if(DEFINED ENV{CEF_ROOT})\r
+    file(TO_CMAKE_PATH "$ENV{CEF_ROOT}" _ENV_CEF_ROOT)\r
+  endif()\r
+  if(_ENV_CEF_ROOT AND IS_DIRECTORY "${_ENV_CEF_ROOT}")\r
+    set(_CEF_ROOT "${_ENV_CEF_ROOT}")\r
+    set(_CEF_ROOT_EXPLICIT 1)\r
+  endif()\r
+  unset(_ENV_CEF_ROOT)\r
+endif()\r
+\r
+if(NOT DEFINED _CEF_ROOT_EXPLICIT)\r
+  message(FATAL_ERROR "Must specify a CEF_ROOT value via CMake or environment variable.")\r
+endif()\r
+\r
+if(NOT IS_DIRECTORY "${_CEF_ROOT}/cmake")\r
+  message(FATAL_ERROR "No CMake bootstrap found for CEF binary distribution at: ${CEF_ROOT}.")\r
+endif()\r
+\r
+# Execute additional cmake files from the CEF binary distribution.\r
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${_CEF_ROOT}/cmake")\r
+include("cef_variables")\r
+include("cef_macros")\r