Giter Club home page Giter Club logo

Comments (5)

likle avatar likle commented on May 20, 2024

Hi @mjako78, sounds interesting - I will have a look at that!

from cwalk.

mjako78 avatar mjako78 commented on May 20, 2024

Let me known if I can help.

from cwalk.

likle avatar likle commented on May 20, 2024

Hi @mjako78,

I have requested access to be able to add a package and was told it would take 1-2 weeks.
Since you were trying to use CMake's ExternalProject, FetchContent might be a workaround for you in the meantime.

Here's an example for CMake 3.16+:

cmake_minimum_required(VERSION 3.16)
project(myproject)
include(FetchContent)
FetchContent_Declare(cwalk
  GIT_REPOSITORY [email protected]: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 [email protected]: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.

from cwalk.

mjako78 avatar mjako78 commented on May 20, 2024

Hi @likle,

thanks for your reply.
I'm trying with a CMake module taken from here, named DownloadProject.
I will try also the solution that you provided.

from cwalk.

likle avatar likle commented on May 20, 2024

cwalk is now in the conan center index: https://conan.io/center/cwalk/1.2.2/

from cwalk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.