Skip to content

Conan + Cmake sample ? #24

@Romain-P

Description

@Romain-P

Reference: https://conan.io/center/recipes/easyhttpcpp?version=2.1.0
I recently tried to integrate using cmake-conan, but it does not add easyhttpcpp include directory to the project automatically (but it should thanks to CMakeDeps)

  • Conan 2 and CMake 3+
  • Windows VS MSVC 17
find_package(easyhttpcppeasyhttp REQUIRED)
target_link_libraries(project_test easyhttp) #please note that `easyhttpcpp::easyhttp` can't be found, had to remove`easyhttpcpp::`

Cmake build is successful but I can't include your directories as I usually do with other deps
Conanfile

[requires]
easyhttpcpp/2.1.0

[generators]
CMakeDeps
CMakeToolchain

[layout]
cmake_layout

[options]
poco/*:enable_netssl=False
poco/*:enable_netssl_win=True
poco/*:enable_data=True
poco/*:enable_data_sqlite=True
poco/*:enable_net=True

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions