Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
77eb70b
First pass at building with vcpkg manifest mode
timoore Jan 27, 2025
1e087a4
GitHub CI actions for Windows build
timoore Jan 29, 2025
46d3b47
GitHub CI: Pass toolset version as argument to cmake
timoore Jan 30, 2025
cb58ae5
Fix typo
timoore Jan 30, 2025
c4a18ce
Fix most GitHub builds to use cesium-native subdirectory
timoore Jan 30, 2025
a08802b
Move from catch2 to doctest
timoore Jan 31, 2025
8765032
Updated cesium native
timoore Feb 3, 2025
013e354
Merge remote-tracking branch 'origin/main' into vcpkg-manifest
timoore Feb 3, 2025
c87f4ba
sync up cesium-native submodule and vcpkg
timoore Feb 3, 2025
dd32f77
Don't build cesium-native's tests when it's a subdirectory
timoore Feb 4, 2025
72a1f5c
Set proper path to cesium-native for Apple build
timoore Feb 4, 2025
81c0b77
Fix all references to cesium-native directory in buildApple.yml
timoore Feb 4, 2025
36f27e2
One more time with ios cesium-native directory
timoore Feb 4, 2025
8777fc5
Start of CMake presets for linux
timoore Feb 4, 2025
52d7c81
Merge branch 'linux-missing-includes' into vcpkg-manifest
timoore Feb 11, 2025
73caf07
Github CI for linux with vcpkg
timoore Feb 11, 2025
0a5b557
Do export VCPKG_ROOT in linux build
timoore Feb 11, 2025
f9ee472
Merge branch 'main' into vcpkg-manifest
timoore Mar 6, 2025
6acacff
Update vcpkg references and clean up CMake presets
timoore Mar 7, 2025
e9b554d
Update to latest cesium-native and install its license
timoore Mar 7, 2025
7e0485a
Test S3 vcpkg cache in Windows build
timoore Mar 7, 2025
2f243f1
Fix typo for accessing secrets
timoore Mar 7, 2025
54bb156
Add AWS vcpkg caching for linux, start of MacOs manifest mode
timoore Mar 10, 2025
6b83cd5
Merge remote-tracking branch 'origin/vcpkg-manifest' into vcpkg-manifest
timoore Mar 10, 2025
b4a9996
Fix AWS typo in linux and apple builds as well
timoore Mar 10, 2025
81afccd
Remove errant space
timoore Mar 10, 2025
00d11b1
Add missing comma
timoore Mar 10, 2025
c22b4bf
Cd into extern subdirectory for apple build
timoore Mar 10, 2025
e0b0792
Do export VCPKG_ROOT
timoore Mar 10, 2025
e62b048
Install vcpkg on macOS runner
timoore Mar 11, 2025
ed04e09
Try harder to install vcpkg
timoore Mar 11, 2025
52d0f9f
Fix indentation in buildApple.yml
timoore Mar 11, 2025
a1cbc9a
Fix typo in triplet and really put vckpg in home directory
timoore Mar 11, 2025
c2e3843
Print out vcpkg error logs
timoore Mar 11, 2025
8cdb63a
Install ninja on macos
timoore Mar 12, 2025
ec44b4a
Fix garbage in CMakePresets environment
timoore Mar 12, 2025
ef8c054
Don't use default features of cpp-httplib, remove ms-gsl
timoore Mar 24, 2025
3dd8cfe
Put ms-gsl back in mainfest for now
timoore Mar 24, 2025
9402bdb
Set cpp-httplib's default features in top-level vcpkg manifest
timoore Mar 25, 2025
c24748c
vcpkg manifest mode for Apple x64 and ios targets
timoore Mar 26, 2025
c89a648
Fix typo in x64 osx triplet
timoore Mar 26, 2025
0d1e3f5
Fix missing "inherits" in x64-osx CMake preset
timoore Mar 26, 2025
2eda215
Do put in proper path to VCPKG_CHAINLOAD_TOOLCHAIN_FILE for ios
timoore Mar 26, 2025
130d59b
Android build and some CMake cleanup
timoore Apr 10, 2025
793b4a8
Set VCPKG_ROOT in Android build
timoore Apr 10, 2025
77fc33c
Merge branch 'main' into vcpkg-manifest
timoore Jul 2, 2025
f1cd045
Update vcpkg manifset mode for cesium native v0.49.0
timoore Jul 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
# These are specified in the Unreal Engine release notes under "IDE Version the Build farm compiles against"
# and using them ensures we're compiling our plugin in the exact same way that Unreal Engine itself is compiled.
cmake-generator: "Visual Studio 17 2022"
cmake-toolchain: "version=14.34"
cmake-toolchain: "14.34"
cmake-platform: "x64,version=10.0.18362.0"
visual-studio-version: "2022"
visual-studio-components: "Microsoft.VisualStudio.Component.VC.14.34.17.4.x86.x64,Microsoft.VisualStudio.Component.Windows10SDK.18362"
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
# These are specified in the Unreal Engine release notes under "IDE Version the Build farm compiles against"
# and using them ensures we're compiling our plugin in the exact same way that Unreal Engine itself is compiled.
cmake-generator: "Visual Studio 17 2022"
cmake-toolchain: "version=14.34"
cmake-toolchain: "14.34"
cmake-platform: "x64,version=10.0.18362.0"
visual-studio-version: "2022"
visual-studio-components: "Microsoft.VisualStudio.Component.VC.14.34.17.4.x86.x64,Microsoft.VisualStudio.Component.Windows10SDK.18362"
Expand Down Expand Up @@ -284,7 +284,7 @@ jobs:
# These are specified in the Unreal Engine release notes under "IDE Version the Build farm compiles against"
# and using them ensures we're compiling our plugin in the exact same way that Unreal Engine itself is compiled.
cmake-generator: "Visual Studio 17 2022"
cmake-toolchain: "version=14.38"
cmake-toolchain: "14.38"
cmake-platform: "x64,version=10.0.22621.0"
visual-studio-version: "2022"
visual-studio-components: "Microsoft.VisualStudio.Component.VC.14.38.17.8.x86.x64,Microsoft.VisualStudio.Component.Windows11SDK.22621"
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/buildAndroid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ on:
android-ndk-version:
required: true
type: string
env:
VCPKG_BINARY_SOURCES: 'clear;x-aws,s3://cesium-builds/vcpkg/cesium-unreal-cache/,readwrite'
jobs:
build:
runs-on: ${{ inputs.runner-label }}
Expand Down Expand Up @@ -63,15 +65,22 @@ jobs:
unreal-program-name: ${{ inputs.unreal-program-name }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Capture AWS secrets for vcpkg cache
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_INTERNAL_SERVICES_VCPKG_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_INTERNAL_SERVICES_VCPKG_SECRET_KEY }}
aws-region: us-east-1
- name: Build cesium-native
run: |
# CMake gets confused by the Windows backslashes
$env:ANDROID_NDK_ROOT=$env:ANDROID_NDK_ROOT.replace('\', '/')
$env:ANDROID_NDK_HOME=$env:ANDROID_NDK_ROOT
$env:UNREAL_ENGINE_ROOT="D:/Program Files/Epic Games/${{ inputs.unreal-program-name }}"
$env:CESIUM_VCPKG_RELEASE_ONLY="TRUE"
$env:VCPKG_ROOT="$env:VCPKG_INSTALLATION_ROOT"
cd extern
cmake -B build-android -S . -G Ninja -DCMAKE_TOOLCHAIN_FILE="unreal-android-toolchain.cmake" -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release
cmake -B build-android --preset=arm64-android -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build-android --config Release --target install -j8
cd ..
rm -r -fo extern
Expand Down
41 changes: 29 additions & 12 deletions .github/workflows/buildApple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
xcode-version:
required: true
type: string
env:
VCPKG_BINARY_SOURCES: 'clear;x-aws,s3://cesium-builds/vcpkg/cesium-unreal-cache/,readwrite'
jobs:
build:
runs-on: ${{ inputs.runner-label }}
Expand Down Expand Up @@ -72,10 +74,6 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure vcpkg caching
uses: ./.github/actions/vcpkg-cache
with:
id: ${{ inputs.upload-package-base-name }}
- name: Install Unreal Engine
uses: ./.github/actions/install-unreal-macos
with:
Expand All @@ -90,24 +88,41 @@ jobs:
# Make these available to subsequent steps
echo "CESIUM_UNREAL_VERSION=${CESIUM_UNREAL_VERSION}" >> $GITHUB_ENV
echo "BUILD_CESIUM_UNREAL_PACKAGE_NAME=${BUILD_CESIUM_UNREAL_PACKAGE_NAME}" >> $GITHUB_ENV
echo "CESIUM_VCPKG_DIR=${HOME}/vcpkg" >> $GITHUB_ENV
- name: Install nasm
uses: ilammy/setup-nasm@v1.5.1
- name: Capture AWS secrets for vcpkg cache
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_INTERNAL_SERVICES_VCPKG_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_INTERNAL_SERVICES_VCPKG_SECRET_KEY }}
aws-region: us-east-1
- name: Install ninja
run: |
brew install ninja
- name: Install vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgDirectory: ${{ env.CESIUM_VCPKG_DIR }}
vcpkgGitCommitId: d5ec528843d29e3a52d745a64b469f810b2cedbf
- name: Print output from run-vcpkg (debugging)
run: >
echo "root='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}', triplet='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_DEFAULT_TRIPLET_OUT }}'"
- name: Build cesium-native for macOS ARM64
run: |
export UNREAL_ENGINE_ROOT=$HOME/${{ inputs.unreal-program-name }}
export CESIUM_VCPKG_RELEASE_ONLY=TRUE
mkdir -p extern/build-arm64
cd extern/build-arm64
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_OSX_ARCHITECTURES=arm64 -DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_SYSTEM_PROCESSOR=arm64
cmake --build . -j4 --target install
cd extern
cmake -B build-arm64 --preset=arm64-osx -DCMAKE_BUILD_TYPE=Release
cmake --build build-arm64 -j4 --target install
- name: Build cesium-native for macOS x86_64
run: |
export UNREAL_ENGINE_ROOT=$HOME/${{ inputs.unreal-program-name }}
export CESIUM_VCPKG_RELEASE_ONLY=TRUE
mkdir -p extern/build-x64
cd extern/build-x64
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_SYSTEM_PROCESSOR=x86_64
cmake --build . -j4 --target install
cd extern
cmake -B build-x64 --preset=x64-osx -DCMAKE_BUILD_TYPE=Release
cmake --build build-x64 -j4 --target install
- name: Create universal macOS libs for cesium-native
run: |
mkdir -p ${GITHUB_WORKSPACE}/Source/ThirdParty/lib/Darwin-universal-Release
Expand All @@ -131,7 +146,7 @@ jobs:
cd extern
export UNREAL_ENGINE_ROOT=$HOME/${{ inputs.unreal-program-name }}
export CESIUM_VCPKG_RELEASE_ONLY=TRUE
cmake -B build-ios -S . -GXcode -DCMAKE_TOOLCHAIN_FILE="unreal-ios-toolchain.cmake" -DCMAKE_BUILD_TYPE=Release
cmake -B build-ios --preset=arm64-ios -GXcode -DCMAKE_BUILD_TYPE=Release
cmake --build build-ios -j4 --target install --config Release
- name: Remove extern directory
run: |
Expand All @@ -145,6 +160,8 @@ jobs:
- name: Print log
if: ${{ failure() }}
run: |
cat "/Users/runner/vcpkg/buildtrees/detect_compiler/config-arm64-osx-rel-out.log"
cat "/Users/runner/vcpkg/buildtrees/detect_compiler/config-arm64-osx-rel-err.log"
cat "/Users/runner/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-UnrealEditor-Mac-Development.txt"
- name: Publish plugin package artifact
if: ${{ success() }}
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/buildLinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ on:
clang-version:
required: true
type: string
env:
VCPKG_BINARY_SOURCES: 'clear;x-aws,s3://cesium-builds/vcpkg/cesium-unreal-cache/,readwrite'
jobs:
build:
runs-on: ${{ inputs.runner-label }}
Expand Down Expand Up @@ -60,14 +62,12 @@ jobs:
unreal-program-name: ${{ inputs.unreal-program-name }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Configure vcpkg caching
uses: ./.github/actions/vcpkg-cache
- name: Capture AWS secrets for vcpkg cache
uses: aws-actions/configure-aws-credentials@v4
with:
id: ${{ inputs.upload-package-base-name }}
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: recursive
aws-access-key-id: ${{ secrets.AWS_INTERNAL_SERVICES_VCPKG_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_INTERNAL_SERVICES_VCPKG_SECRET_KEY }}
aws-region: us-east-1
- name: Install Ninja and patchelf
run: |
sudo apt install -y ninja-build patchelf
Expand All @@ -81,10 +81,11 @@ jobs:
run: |
export UNREAL_ENGINE_COMPILER_DIR="${LINUX_MULTIARCH_ROOT}x86_64-unknown-linux-gnu"
export UNREAL_ENGINE_LIBCXX_DIR="${UNREAL_ENGINE_ROOT}/Engine/Source/ThirdParty/Unix/LibCxx"
export VCPKG_ROOT="${VCPKG_INSTALLATION_ROOT}"
export CESIUM_VCPKG_RELEASE_ONLY=TRUE
cd extern
cmake -B build -S . -G Ninja -DCMAKE_TOOLCHAIN_FILE="unreal-linux-toolchain.cmake" -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release --target install -j8
cmake --preset linux -DCMAKE_BUILD_TYPE=Release
cmake --build out/build/linux --config Release --target install -j8
cd ..
rm -rf extern
- name: Make more swap space available
Expand Down
22 changes: 16 additions & 6 deletions .github/workflows/buildWindows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ on:
required: false
type: string
default: "x64"
env:
VCPKG_BINARY_SOURCES: 'clear;x-aws,s3://cesium-builds/vcpkg/cesium-unreal-cache/,readwrite'
jobs:
build:
runs-on: ${{ inputs.runner-label }}
Expand All @@ -69,10 +71,6 @@ jobs:
if: ${{ inputs.extra-choco-packages }}
run: |
choco install -y ${{ inputs.extra-choco-packages }}
- name: Configure vcpkg caching
uses: ./.github/actions/vcpkg-cache
with:
id: ${{ inputs.upload-package-base-name }}
- name: Set environment variables
run: |
$env:CESIUM_UNREAL_VERSION=$env:GITHUB_REF_NAME
Expand Down Expand Up @@ -100,13 +98,25 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Install nasm
uses: ilammy/setup-nasm@v1.5.1
- name: Capture AWS secrets for vcpkg cache
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_INTERNAL_SERVICES_VCPKG_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_INTERNAL_SERVICES_VCPKG_SECRET_KEY }}
aws-region: us-east-1
- name: Build cesium-native
run: |
cd extern
$env:UNREAL_ENGINE_ROOT="D:/Program Files/Epic Games/${{ inputs.unreal-program-name }}"
$env:CESIUM_VCPKG_RELEASE_ONLY="TRUE"
$toolchainOption=If ("${{ inputs.cmake-toolchain }}") {"-T ${{ inputs.cmake-toolchain }}"} Else {""}
cmake -B build -S . -A "${{ inputs.cmake-platform }}" -G "${{ inputs.cmake-generator }}" $toolchainOption
$env:VCPKG_ROOT="$env:VCPKG_INSTALLATION_ROOT"
$env:CESIUM_TOOLSET_VERSION="${{ inputs.cmake-toolchain }}"
if ($env:CESIUM_TOOLSET_VERSION) {
cmake -B build -S . -T "version=${{ inputs.cmake-toolchain}}" -A "${{ inputs.cmake-platform }}" --preset Windows-CI-Versioned
}
else {
cmake -B build -S . -A "${{ inputs.cmake-platform }}" -preset Windows-CI
}
cmake --build build --config Release --target install -j8
cd ..
rm -r -fo extern
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "extern/cesium-native"]
path = extern/cesium-native
url = ../cesium-native.git
[submodule "extern/MikkTSpace"]
path = extern/MikkTSpace
url = https://github.com/mmikk/MikkTSpace.git
Expand Down
68 changes: 48 additions & 20 deletions extern/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ project(
LANGUAGES CXX C
)

# XXX Not working yet
set(CESIUM_UNREAL_NATIVE_DIRECTORY "" CACHE PATH "directory for Cesium Native source if not installed via package manager")

if (DEFINED ENV{UNREAL_ENGINE_ROOT} AND NOT UNREAL_ENGINE_ROOT)
set(UNREAL_ENGINE_ROOT "$ENV{UNREAL_ENGINE_ROOT}")
endif()
Expand Down Expand Up @@ -57,6 +60,7 @@ set(PRIVATE_CESIUM_SQLITE ON)
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreadedDLL)
set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_LIST_DIR}/../Source/ThirdParty)
set(CMAKE_INSTALL_LIBDIR ${CMAKE_INSTALL_PREFIX}/lib/${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}-$<IF:$<CONFIG:Debug>,Debug,Release>)
set(CMAKE_INSTALL_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)

# Always define NDEBUG, since Unreal does in debug anyway.
# We don't want any mismatches, especially with class member ordering.
Expand Down Expand Up @@ -105,28 +109,37 @@ if (CESIUM_USE_UNREAL_TRACING)
list(APPEND CESIUM_EXTRA_INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/include")
endif()

# vcpkg setup
set(ENV{VCPKG_OVERLAY_PORTS} "${CMAKE_CURRENT_LIST_DIR}/vcpkg-overlays")
set(ENV{VCPKG_OVERLAY_TRIPLETS} "${CMAKE_CURRENT_LIST_DIR}/vcpkg-overlays/triplets")

include(${CMAKE_CURRENT_SOURCE_DIR}/cesium-native/cmake/detect-vcpkg-triplet.cmake)

if (NOT VCPKG_TRIPLET)
if (DEFINED ENV{VCPKG_TRIPLET})
set(VCPKG_TRIPLET "$ENV{VCPKG_TRIPLET}")
elseif(DETECTED_VCPKG_TRIPLET_ERROR)
message(FATAL_ERROR "${DETECTED_VCPKG_TRIPLET_ERROR}")
else()
set(VCPKG_TRIPLET "${DETECTED_VCPKG_TRIPLET}-unreal")
endif()
endif()

# Our OpenSSL is part of Unreal Engine, so need to install it.
set(CESIUM_EXCLUDE_INSTALL_HEADERS openssl)
set(CESIUM_EXCLUDE_INSTALL_STATIC_LIBS openssl)
SET(CESIUM_DISABLE_CURL ON)

add_subdirectory(cesium-native)
if(CESIUM_UNREAL_NATIVE_DIRECTORY)
# These packages are used in the public headers of Cesium libraries, so we need to distribute the headers and binaries
# with the installation
# Note that fmt is a public dependency of the vcpkg version of spdlog
# STB and uriparser aren't technically part of the public interface, but they're used by the downstream Cesium for Unreal project
set(PACKAGES_PUBLIC asyncplusplus expected-lite fmt glm rapidjson spdlog stb uriparser)
# These packages are used in the code and produce binaries, but are not part of the public interface. Therefore we need
# to distribute the binaries for linking, but not the headers, as downstream consumers don't need them
# OpenSSL and abseil are both dependencies of s2geometry
set(PACKAGES_PRIVATE
abseil draco ktx modp-base64 meshoptimizer openssl s2geometry
libjpeg-turbo sqlite3 tinyxml2 libwebp zlib-ng picosha2
earcut-hpp cpp-httplib[core] libmorton zstd
)
# Packages only used for testing
set(PACKAGES_TEST catch2)

set(PACKAGES_ALL ${PACKAGES_PUBLIC})
list(APPEND PACKAGES_ALL ${PACKAGES_PRIVATE})
list(APPEND PACKAGES_ALL ${PACKAGES_TEST})
add_subdirectory("${CESIUM_UNREAL_NATIVE_DIRECTORY}" cesium-native)
# Don't build the cesium-native tests by default
set_target_properties(cesium-native-tests PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1)
else()
find_package(cesium-native)
endif()

# cesium-native doesn't require this header to be public, but Cesium for Unreal wants to use it.
#install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cesium-native/extern/stb/stb_image_resize.h TYPE INCLUDE)
Expand All @@ -149,8 +162,23 @@ set(LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR})
set(CMAKE_POLICY_VERSION_MINIMUM "3.5")
add_subdirectory(tidy-html5)

# Don't build the cesium-native tests by default
set_target_properties(cesium-native-tests PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1)

add_subdirectory(swl-variant)
install(DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/swl-variant/include/" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

if(VCPKG_INSTALLED_DIR)
set(CESIUM_VCPKG_DIR "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}")
set(CESIUM_VCPKG_LIBDIR "${CESIUM_VCPKG_DIR}/$<IF:$<CONFIG:Debug>,debug/lib,lib>")

message(STATUS "CESIUM_VCPKG_LIBDIR: ${CESIUM_VCPKG_LIBDIR}")

install(DIRECTORY "${CESIUM_VCPKG_LIBDIR}/"
DESTINATION "${CMAKE_INSTALL_LIBDIR}"
PATTERN libcrypto.* EXCLUDE
PATTERN libssl.* EXCLUDE
)

install(DIRECTORY "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include/"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
PATTERN openssl EXCLUDE
)
endif()
Loading
Loading