After hacking and playing around with the CEF3 build, I would like to put together a proper cmake script that would pull in a specific CEF3 build as a dependency for my own project. I'm a bit new to the cmake toolset and need some of guidance.
I've defined the CEF3 dependency with cmake using ExternalProject_Add.
- Code: Select all
cmake_minimum_required(VERSION 3.2.1)
include(ExternalProject)
project(test)
# Include cmake macros.
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}")
include("macros")
ExternalProject_Add(
cef
URL https://cefbuilds.s3.amazonaws.com/2272/win/41.0.2272.76/cef_binary_3.2272.2077_windows32.7z
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/vendor/cef
INSTALL_COMMAND ""
)
After this step, I'm not sure what to do. I thought about creating a copy of cefsimple and use that as a starting point for the project, by doing something like add_subdirectory(cefsimple). But this would mean also copying all of CMakeLists.txt into my own CMakeLists.txt file. I would also need to adjust the cefsimple CMakeLists.txt file to somehow depend on the libcef_dll_wrapper from the external project. Does this make sense?
Any push in the right direction would be really helpful...