forked from obsproject/obs-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FindCEF.cmake
32 lines (23 loc) · 957 Bytes
/
FindCEF.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
include(FindPackageHandleStandardArgs)
message("Looking for Chromium Embedded Framework in ${CEF_ROOT_DIR}")
find_path(CEF_INCLUDE_DIR "include/cef_version.h"
HINTS ${CEF_ROOT_DIR})
find_library(CEF_LIBRARY
NAMES cef libcef cef.lib libcef.o "Chromium Embedded Framework"
PATHS ${CEF_ROOT_DIR} ${CEF_ROOT_DIR}/Release)
find_library(CEFWRAPPER_LIBRARY
NAMES cef_dll_wrapper libcef_dll_wrapper
PATHS ${CEF_ROOT_DIR}/build/libcef_dll ${CEF_ROOT_DIR}/build/libcef_dll_wrapper)
if (NOT CEF_LIBRARY)
message(FATAL_ERROR "Could not find the CEF shared library" )
endif (NOT CEF_LIBRARY)
if (NOT CEFWRAPPER_LIBRARY)
message(FATAL_ERROR "Could not find the CEF wrapper library" )
endif (NOT CEFWRAPPER_LIBRARY)
set(CEF_LIBRARIES
${CEF_LIBRARY}
${CEFWRAPPER_LIBRARY})
find_package_handle_standard_args(CEF DEFAULT_MSG CEF_LIBRARY
CEFWRAPPER_LIBRARY CEF_INCLUDE_DIR)
mark_as_advanced(CEF_LIBRARY CEF_WRAPPER_LIBRARY CEF_LIBRARIES
CEF_INCLUDE_DIR)