Skip to content

Instantly share code, notes, and snippets.

@hongyue
hongyue / git_submodules.md
Created August 9, 2021 01:42 — forked from gitaarik/git_submodules.md
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:

  • You can separate the code into different repositories.
@hongyue
hongyue / cmake-vcpkg-qtcreator.md
Last active December 31, 2023 03:08
cmake, vcpkg and qt creator integration related stuff

VS Code's CMake Tools integration with vcpkg

Add the "cmake.configureSettings" section to vs code's settings.json.

For remote development, using 'open remote settings' to open settings.json.

{
    "cmake.configureSettings": {
        "CMAKE_TOOLCHAIN_FILE": "<vcpkg root folder>/scripts/buildsystems/vcpkg.cmake"
    }
}