tgbot-cpp icon indicating copy to clipboard operation
tgbot-cpp copied to clipboard

CMake: add find_package support

Open 7FM opened this issue 1 year ago • 0 comments

I am not that familiar with CMake but I managed to add rudimental support to include tgbot-cpp into another CMake project with find_package(TgBot REQUIRED)

However, with the current changes including the library fails with the following message:

  The link interface of target "TgBot::TgBot" contains:

    Boost::system

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

UNLESS one adds find_package(Boost 1.65.1 COMPONENTS system REQUIRED) right before the find_package(TgBot REQUIRED).

7FM avatar Feb 14 '24 20:02 7FM