chromiumembedded / cef

Chromium Embedded Framework (CEF). A simple framework for embedding Chromium-based browsers in other applications.
https://bitbucket.org/chromiumembedded/cef/
Other
3.38k stars 467 forks source link

Using external library (cef) #3800

Closed copilot0058 closed 1 month ago

copilot0058 commented 1 month ago

Describe alternatives you've considered Does it has example that using external library (cef)

For example

cmake_minimum_required(VERSION 3.9)
project(Bar)

# find package Foo (example library)
find_package(cef 1.2.3 CONFIG REQUIRED)

# add binary
add_executable(bar bar.cpp)

# add library
target_link_libraries(bar PRIVATE cef::cef)
//bar.cpp
#include <cef>
...
magreenblatt commented 1 month ago

Yes, see https://github.com/chromiumembedded/cef-project for an example.

copilot0058 commented 1 month ago

Yes, I see these example and it is the internal method, not the external method.

Also, I expect the CEF_INCLUDE_DIRS and CEF_LIBRARIES

Do you know where is it? I see cef-project is internal method

internal method, the external method. https://github.com/pablospe/cmake-example-library

magreenblatt commented 1 month ago

What do you mean by internal vs external method?

copilot0058 commented 1 month ago

Here is internal method, the external method. https://github.com/pablospe/cmake-example-library

I want to generate the CEF_INCLUDE_DIRS and CEF_LIBRARIES