-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve CMakeLists files: enable to pass QT_SDK_DIR from commandline
- Loading branch information
Showing
11 changed files
with
48 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule CefViewCore
updated
11 files
+26 −5 | CMakeLists.txt | |
+4 −22 | cmake/DownloadCef.cmake | |
+1 −1 | linux-arm-gen.sh | |
+1 −1 | linux-arm64-gen.sh | |
+1 −1 | linux-x86-gen.sh | |
+1 −1 | linux-x86_64-gen.sh | |
+1 −1 | mac-arm64-gen.sh | |
+1 −1 | mac-x86_64-gen.sh | |
+1 −1 | win-arm64-gen.bat | |
+1 −1 | win-x86-gen.bat | |
+1 −1 | win-x86_64-gen.bat |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# ################################################################################ | ||
# | ||
# The Qt SDK path | ||
# You can set the evnironment varibale via | ||
# 1. command line | ||
# Windows: SET QTDIR=PATH/TO/QT | ||
# Non-Windows: export QTDIR=PATH/TO/QT | ||
# 2. modifying the value below directly | ||
# | ||
|
||
# Qt build toolchain path not set or doesn't exist | ||
# try to read from environment QTDIR | ||
if(NOT EXISTS ${QT_SDK_DIR}) | ||
message(STATUS "QT_SDK_DIR not found, try to read from environment variable: QTDIR") | ||
set(QT_SDK_DIR "$ENV{QTDIR}" CACHE STRING "QT_SDK_DIR read from environment variable: QTDIR" FORCE) | ||
endif() | ||
|
||
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!NOTE!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
# You must make sure the target platform and architecture | ||
# of QT binaries math the ones of CEF binaries | ||
# Qt linux-x86 + CEF linux-x86 | ||
# Qt linux-x86_64 + CEF linux-x86_64 | ||
# Qt windows-x86 + CEF windows-x86 | ||
# Qt windows-x86_64 + CEF windows-x86_64 | ||
# Qt macos-x86_64 + CEF macos-x86_64 | ||
# Qt macos-arm64 + CEF macos-arm64 | ||
# | ||
|
||
# find required components | ||
message(STATUS " Qt SDK dir: " ${QT_SDK_DIR}) | ||
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${QT_SDK_DIR}) | ||
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Gui Widgets REQUIRED) | ||
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Gui Widgets REQUIRED) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters