Skip to content

Commit 6005865

Browse files
committed
feat(build): move to fetchcontent
1 parent 2c40eb8 commit 6005865

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

.gitmodules

-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "CefViewCore"]
2-
path = CefViewCore
3-
url = https://github.com/CefView/CefViewCore

CMakeLists.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ option(BUILD_STATIC "Build QCefView as static library" OFF)
99
option(USE_SANDBOX "Enable CEF Sandbox" OFF)
1010
option(STATIC_CRT "Use MultiThreaded linkage for MSVC" OFF)
1111

12+
# set(CEF_SDK_VERSION "109.1.18+gf1c41e4+chromium-109.0.5414.120")
13+
set(CEF_SDK_VERSION "113.3.1+g525fa10+chromium-113.0.5672.128")
14+
1215
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
1316

1417
get_directory_property(QCefView_HAS_PARENT_DIRECTORY PARENT_DIRECTORY)
@@ -117,8 +120,7 @@ if(NOT QCefView_HAS_PARENT_DIRECTORY)
117120
endif()
118121

119122
# Include CefViewCore
120-
add_subdirectory(CefViewCore)
121-
set_target_properties(CefViewCore PROPERTIES FOLDER core)
123+
add_subdirectory(core)
122124

123125
foreach(CefViewWingTarget ${CefViewCore_HELPER_APP_TARGETS})
124126
set_target_properties(${CefViewWingTarget} PROPERTIES FOLDER core)

CefViewCore

-1
This file was deleted.

core/CMakeLists.txt

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
include(FetchContent)
2+
3+
FetchContent_Declare(
4+
CefViewCore
5+
GIT_REPOSITORY https://github.com/CefView/CefViewCore.git
6+
GIT_TAG c79fb7f5fe1e697dca3a501570daf30e794ceaeb
7+
)
8+
9+
FetchContent_MakeAvailable(CefViewCore)
10+
11+
set_target_properties(CefViewCore PROPERTIES FOLDER core)

0 commit comments

Comments
 (0)