A proper multi-platform tutorial for CMake #1316
Lohkdesgds
started this conversation in
Ideas
Replies: 2 comments 8 replies
-
It turns out I wrote the original page you linked to (which I don't remember doing...) so I have added some more info on CMake for you. Hope it helps! To be honest I absolutely hate CMake, I find it unhelpful and irritatingly inconsistent which means I am probably not the best person to advise |
Beta Was this translation helpful? Give feedback.
3 replies
-
I have an example CMake that should be cross-platform, and it also is an example of how to build with emscripten. Hopefully it helps. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been trying to do Cmake stuff for a long while now. Cmake is the way to easily compile for multiple platforms, right? A well done Cmakelists should be like plug and play on many platforms.
Allegro already has some Cmake stuff going on, but there's too little tutorials about how to do stuff (it is on TO DO here actually, "actually easier", but how exactly?). I got it compiling the basic stuff after 5+ tries and I'm still confused how to add the addons and so on. I've found an old tutorial here and that kinda works, but it was not easy finding it. I don't know if it's up to date enough, what I should do, and so on. Some tests seems to just "FAIL" on build, and again, I'm kinda lost here.
One great thing is that there's some pre-built stuff, like the nuget package for Visual Studio. That's awesome, but platform specific. Visual Studio has project-based "projects" while on Linux we do more folder-based or Cmake projects, something like that. At least I do. I can't just copy and paste on Linux and run, that's why it's good for learning about Allegro, but not long term (if you want multi-platform, of course).
Is there some kind of step by step or something to get Allegro working with Cmake? I'm thinking about a way to just "git clone" and run, or minimal steps, because it would be nice for anyone just adding as submodule and making stuff right away.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions