Last active
September 2, 2020 15:41
-
-
Save aharonamir/dd781fcca8016bf76cec010445e58931 to your computer and use it in GitHub Desktop.
Cmake vcpkg integration
This file contains hidden or 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
... | |
# 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