|
How to add this library to Visual studio 2022 on Windows OS? |
Answered by
reo7sp
Sep 14, 2026
Replies: 2 comments
|
you can install it by vcpkg or add this lib as submodule |
0 replies
|
Current tgbot-cpp requires Visual Studio 2022 with the Desktop C++ workload, CMake, Ninja, Make and Conan 2. The exact installation commands are in the Windows section of the repository README; run the Make targets from Git Bash. Build and install the library: make install INSTALL_PREFIX=build/installIn the bot project, use CMake targets instead of adding find_package(TgBot CONFIG REQUIRED)
add_executable(your_bot main.cpp)
target_link_libraries(your_bot PRIVATE TgBot::TgBot)Configure the consumer with the same Conan-generated toolchain and add the tgbot-cpp install prefix to |
0 replies
Answer selected by
reo7sp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current tgbot-cpp requires Visual Studio 2022 with the Desktop C++ workload, CMake, Ninja, Make and Conan 2. The exact installation commands are in the Windows section of the repository README; run the Make targets from Git Bash.
Build and install the library:
In the bot project, use CMake targets instead of adding
.libfiles manually:Configure the consumer with the same Conan-generated toolchain and add the tgbot-cpp install prefix to
CMAKE_PREFIX_PATH. An alternative is to add tgbot-cpp as a Git submodule and useadd_subdir…