forked from complexlogic/rsgain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c719b2
commit cd3694b
Showing
9 changed files
with
97 additions
and
26 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
message("Setting up vcpkg...") | ||
include(FetchContent) | ||
FetchContent_Declare( | ||
vcpkg | ||
GIT_REPOSITORY https://github.com/microsoft/vcpkg.git | ||
GIT_SHALLOW TRUE | ||
SOURCE_DIR ${PROJECT_BINARY_DIR} | ||
) | ||
FetchContent_Declare( | ||
vcpkg_overlay | ||
GIT_REPOSITORY https://github.com/complexlogic/vcpkg.git | ||
GIT_TAG origin/rsgain | ||
GIT_SHALLOW TRUE | ||
SOURCE_DIR ${PROJECT_BINARY_DIR} | ||
) | ||
FetchContent_MakeAvailable(vcpkg vcpkg_overlay) | ||
set(VCPKG_OVERLAY_PORTS "${CMAKE_BINARY_DIR}/_deps/vcpkg_overlay-src/ports") | ||
|
||
if (WIN32) | ||
if (NOT VCPKG_OVERLAY_TRIPLETS) | ||
list(APPEND VCPKG_OVERLAY_TRIPLETS "${CMAKE_SOURCE_DIR}/config/vcpkg_triplets") | ||
endif () | ||
if (NOT VCPKG_TARGET_TRIPLET) | ||
set (VCPKG_TARGET_TRIPLET "custom-triplet") | ||
endif () | ||
endif () | ||
|
||
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_BINARY_DIR}/_deps/vcpkg-src/scripts/buildsystems/vcpkg.cmake") |
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