Giter Site home page Giter Site logo

Provide cmake-package about glad HOT 8 CLOSED

cNoNim avatar cNoNim commented on June 27, 2024
Provide cmake-package

from glad.

Comments (8)

Dav1dde avatar Dav1dde commented on June 27, 2024

Thanks for the all the work you and all the other people do for packaging glad.

Unfortunately I have pretty much no idea about cmake and it has always been a pain for me to keep it up to date and usable, I always relied on community help for that.

Is this change something you need in the repo to make the packaging possible? I would prefer if the packaging was as much as possible independent from the glad repo.

That being said, if you can keep the changes backwards compatible and it improves the overall experience I am thankful for any contribution.

from glad.

cNoNim avatar cNoNim commented on June 27, 2024

@Dav1dde you can review PR #453 is it ready
In reality, it's not necessary.
I have already prepared a PR for conda-forge at conda-forge/glad-feedstock#8.

But it seems to me that such a solution would simplify the overall experience.

After install python module and copy GladConfig.cmake
u just need

find_package(Glad REQUIRED)
glad_add_library(glad_gl_core_33 REPRODUCIBLE API gl:core=3.3)

from glad.

cNoNim avatar cNoNim commented on June 27, 2024

Actually, for packaging u just need

patch CMakeLists.txt -> cmake.patch

and

mkdir -p $PREFIX/lib/cmake/Glad && cp $SRC_DIR/cmake/CMakeLists.txt $PREFIX/lib/cmake/Glad/GladConfig.cmake

In PR I just maintain backward compability

from glad.

cNoNim avatar cNoNim commented on June 27, 2024

@Dav1dde

Sorry I don't want to create a separate issue for a small question.
It looks like there are some interesting CMake level improvements from the last release.
When will 2.0.5 be released?

from glad.

Dav1dde avatar Dav1dde commented on June 27, 2024

Thanks for your PR. Sorr been a bit busy/exhausted, I'll take a look on the weekend and make a new release for you.

from glad.

cNoNim avatar cNoNim commented on June 27, 2024

It's not urgent. And thanks for your work.
Maybe we need to look deeper into the cmake packages.
For example, if you look at https://github.com/Tradias/asio-grpc/blob/master/cmake/asio-grpcConfig.cmake.in it looks more complicated, but I don't really understand what it's so complicated for.

from glad.

Dav1dde avatar Dav1dde commented on June 27, 2024

Thanks for your work, merged and released 2.0.5!

from glad.

cNoNim avatar cNoNim commented on June 27, 2024

Thanks!

from glad.

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.