From 48bfb3ef7cb6c2f9f2b0bac23debf0e1980b14a0 Mon Sep 17 00:00:00 2001 From: Brandon Walker Date: Sat, 30 Sep 2023 12:35:18 -0400 Subject: [PATCH] Add vcpkg submodule --- .gitmodules | 3 +++ CMakeLists.txt | 5 +++++ ext/vcpkg | 1 + 3 files changed, 9 insertions(+) create mode 160000 ext/vcpkg diff --git a/.gitmodules b/.gitmodules index f153fed..bc43b44 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "ext/baro"] path = ext/baro url = git@github.com:branw/baro.git +[submodule "ext/vcpkg"] + path = ext/vcpkg + url = https://github.com/microsoft/vcpkg diff --git a/CMakeLists.txt b/CMakeLists.txt index c941eb4..813cdc5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,9 @@ cmake_minimum_required(VERSION 3.9) + +# Use submodule vcpkg if no other path is provided +set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake" + CACHE STRING "Vcpkg toolchain file") + project(ssb C) set(CMAKE_C_STANDARD 11) diff --git a/ext/vcpkg b/ext/vcpkg new file mode 160000 index 0000000..c6d6efe --- /dev/null +++ b/ext/vcpkg @@ -0,0 +1 @@ +Subproject commit c6d6efed3e9b4242765bfe1b5c5befffd85f7b92