Newer
Older
callum_linden
committed
# -*- cmake -*-
include(Linking)
include(Prebuilt)
if (USESYSTEMLIBS)
set(CEFPLUGIN OFF CACHE BOOL
"CEFPLUGIN support for the llplugin/llmedia test apps.")
else (USESYSTEMLIBS)
Callum Prentice
committed
use_prebuilt_binary(dullahan)
callum_linden
committed
set(CEFPLUGIN ON CACHE BOOL
"CEFPLUGIN support for the llplugin/llmedia test apps.")
set(CEF_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include/cef)
callum_linden
committed
endif (USESYSTEMLIBS)
if (WINDOWS)
callum_linden
committed
set(CEF_PLUGIN_LIBRARIES
libcef.lib
libcef_dll_wrapper.lib
Callum Prentice
committed
dullahan.lib
callum_linden
committed
)
callum_linden
committed
elseif (DARWIN)
callum_linden
committed
FIND_LIBRARY(APPKIT_LIBRARY AppKit)
if (NOT APPKIT_LIBRARY)
message(FATAL_ERROR "AppKit not found")
endif()
FIND_LIBRARY(CEF_LIBRARY "Chromium Embedded Framework" ${ARCH_PREBUILT_DIRS_RELEASE})
if (NOT CEF_LIBRARY)
message(FATAL_ERROR "CEF not found")
endif()
set(CEF_PLUGIN_LIBRARIES
${ARCH_PREBUILT_DIRS_RELEASE}/libcef_dll_wrapper.a
Callum Prentice
committed
${ARCH_PREBUILT_DIRS_RELEASE}/libdullahan.a
callum_linden
committed
${APPKIT_LIBRARY}
${CEF_LIBRARY}
callum_linden
committed
callum_linden
committed
elseif (LINUX)
endif (WINDOWS)