Skip to content

Instantly share code, notes, and snippets.

@aharonamir
Last active September 2, 2020 15:41
Show Gist options
  • Save aharonamir/dd781fcca8016bf76cec010445e58931 to your computer and use it in GitHub Desktop.
Save aharonamir/dd781fcca8016bf76cec010445e58931 to your computer and use it in GitHub Desktop.
Cmake vcpkg integration
...
# add vcpkg toochain
include(/home/vscode/vcpkg/scripts/buildsystems/vcpkg.cmake)
# find packages:
# some packages in vcpkg will require to add find_package
# e.g find_package(nlohmann_json CONFIG REQUIRED)
# vcpkg will notify that when installing the specific package
# libs
link_directories( /home/vscode/vcpkg/installed/x64-linux/lib )
# *.h file locations
...
include_directories(PRIVATE /home/vscode/vcpkg/installed/x64-linux/include)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment