D++ (DPP)
C++ Discord API Bot Library
Installing D++ for CLion via VCPKG (Windows)
Warning
This page is for Windows only. If you want to use CLion on Linux, look to use this page. Like always with windows, we highly recommends you use the pre-made Visual Studio template

To add D++ to a CLion project, you need obtain the library through VCPKG and then configure your CLion project and CMakeLists.txt.

  1. Build VCPKG on your system (skip if you already have it).
  2. Run vcpkg install dpp:x64-windows.
  3. VCPKG will install the library along with the dependencies for you.
  4. Now check if dpp has been installed using vcpkg list dpp.
    C:/vcpkg>vcpkg list dpp
    dpp:x64-windows 10.0.23 D++ Extremely Lightweight C++ Discord Library.
  5. To use vcpkg in CLion, add the following line to your CMake options in the settings (Located under Settings > Build, Execution, Deployment > CMake)
    -DCMAKE_TOOLCHAIN_FILE=path_to_vcpkg_root_folder/scripts/buildsystems/vcpkg.cmake
    For example, if your root folder is C:/vcpkg/ then the CMake option will be:
    -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
  6. Now proceed to add the following lines to your CMakeLists.txt:
    find_package(dpp CONFIG REQUIRED)
    target_link_libraries(main PRIVATE dpp::dpp)
    target_include_directories(main PRIVATE path_to_vcpkg_root_folder/installed/architecture-os/include)
    For example, if your VCPKG root is C:/vcpkg/, then your CMakeLists.txt should look like this:
    find_package(dpp CONFIG REQUIRED)
    target_link_libraries(main PRIVATE dpp::dpp)
    target_include_directories(main PRIVATE C:/vcpkg/installed/x64-windows/include)
  7. Congratulations! Now try to build a test program to see if the installation succeeded. If you get stuck somewhere, feel free to ask us on the D++ discord server.
D++ Library version 10.0.35D++ Library version 10.0.34D++ Library version 10.0.33D++ Library version 10.0.32D++ Library version 10.0.31D++ Library version 10.0.30D++ Library version 10.0.29D++ Library version 10.0.28D++ Library version 10.0.27D++ Library version 10.0.26D++ Library version 10.0.25D++ Library version 10.0.24D++ Library version 10.0.23D++ Library version 10.0.22D++ Library version 10.0.21D++ Library version 10.0.20D++ Library version 10.0.19D++ Library version 10.0.18D++ Library version 10.0.17D++ Library version 10.0.16D++ Library version 10.0.15D++ Library version 10.0.14D++ Library version 10.0.13D++ Library version 10.0.12D++ Library version 10.0.11D++ Library version 10.0.10D++ Library version 10.0.9D++ Library version 10.0.8D++ Library version 10.0.7D++ Library version 10.0.6D++ Library version 10.0.5D++ Library version 10.0.4D++ Library version 10.0.3D++ Library version 10.0.2D++ Library version 10.0.1D++ Library version 10.0.0D++ Library version 9.0.19D++ Library version 9.0.18D++ Library version 9.0.17D++ Library version 9.0.16D++ Library version 9.0.15D++ Library version 9.0.14D++ Library version 9.0.13D++ Library version 9.0.12D++ Library version 9.0.11D++ Library version 9.0.10D++ Library version 9.0.9D++ Library version 9.0.8D++ Library version 9.0.7D++ Library version 9.0.6D++ Library version 9.0.5D++ Library version 9.0.4D++ Library version 9.0.3D++ Library version 9.0.2D++ Library version 9.0.1D++ Library version 9.0.0D++ Library version 1.0.2D++ Library version 1.0.1D++ Library version 1.0.0