-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conan package #7
Comments
Hi @mjako78, sounds interesting - I will have a look at that! |
Let me known if I can help. |
Hi @mjako78, I have requested access to be able to add a package and was told it would take 1-2 weeks. Here's an example for CMake 3.16+: cmake_minimum_required(VERSION 3.16)
project(myproject)
include(FetchContent)
FetchContent_Declare(cwalk
GIT_REPOSITORY git@github.com:likle/cwalk.git
GIT_TAG v1.2.2
)
FetchContent_MakeAvailable(cwalk)
add_executable(myproject myproject.c)
target_link_libraries(myproject cwalk) or if you want to support CMake 3.11+: cmake_minimum_required(VERSION 3.11)
project(myproject)
include(FetchContent)
FetchContent_Declare(cwalk
GIT_REPOSITORY git@github.com:likle/cwalk.git
GIT_TAG v1.2.2
)
FetchContent_GetProperties(cwalk)
if(NOT cwalk_POPULATED)
FetchContent_Populate(cwalk)
add_subdirectory(${cwalk_SOURCE_DIR} ${cwalk_BINARY_DIR})
endif()
add_executable(myproject myproject.c)
target_link_libraries(myproject cwalk) And then you should be able to include and use cwalk without any further steps. |
cwalk is now in the conan center index: https://conan.io/center/cwalk/1.2.2/ |
Hi, I'm trying to use your lib inside my project which is based on conan package manager.
Are you planning to release your work to the conan package center?
I have some difficulties to use embed cwalk downloaded directly via CMakeLists ExternalProject
The text was updated successfully, but these errors were encountered: