Skip to content
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

CMake build system #35

Open
golxzn opened this issue Nov 27, 2022 · 3 comments
Open

CMake build system #35

golxzn opened this issue Nov 27, 2022 · 3 comments

Comments

@golxzn
Copy link

golxzn commented Nov 27, 2022

Hi!
Thank you for your project!
The question is super easy: did you think about moving to the CMake build system?

As I can see, this project doesn't look like a big, complex project which required the same build system.
I mean, it will not be so hard to integrate CMake into this project.

If you aren't skilled in CMake, I could pay as much time as possible.

To make the CMake project, we can create new branch with the following changes:

  • Change the project directories structure like that:
 1. | cmake/               | CMake tools and utils
 2. | OOGL/                | Main project directyr
 3. | ├── include/         |
 4. | ├── src/             |
 5. | ├── samples/         |
 6. | └── CMakeLists.txt   | CMake lists which will build GL, Math, Utils and Window targets
 7. | deps/                |
 8. | ├── libjpeg/         |
 9. | ├── libpng/          |
10. | ├── zlib/            |
11. | └── deps.cmake       |
12. | .gitignore           |
13. | CMakeLists.txt       |
14. | LICENSE              |
15. | README.md            |
16. | TODO.md              |
  • Support building the project as subdirectory and using find_library;

If you'll be happy to use CMake, I may try to work a little around it in a cmake_support branch or etc.

@Overv
Copy link
Owner

Overv commented Dec 12, 2022

To be honest I don't really maintain this repository anymore since superior websites like learnopengl.com have popped up.

@golxzn
Copy link
Author

golxzn commented Dec 13, 2022

Oh, I got you. Sorry to hear it

@jetblacksalvation
Copy link

https://github.com/jetblacksalvation/OOGL-Cmake
this is my fork which has some cmake support. i am still working on getting it to spit out binary that ppl can install either through cmake or github itself i also dont have support for that FindLibrary functionality yet. I had alot of fun using this library at work today and even got cmake building and a little square demo with user input on the screen. Anyways feedback would be nice on this. i am work on implement the find library supports :^) since this is something i want too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants