Using Third Party Libraries Like RayLib in Your Project with CMake
Vložit
- čas přidán 14. 05. 2023
- So, you've mastered compiling multi-file source-code into a program (binary). Congratulations. However, if you're going to write larger useful software, then you're going to need third-party libraries.
This video covers how to link third-party libraries into your project using CMake.
Click the following link for a summary (and to download the source code):
keasigmadelta.com/blog/using-...
Want to learn more CMake? Click the following link:
keasigmadelta.com/store/landi...
#programming #tech #softwaredevelopment #cmake #cpp #cpptutorial #cmaketutorial - Věda a technologie
Amazing! you solved a week of struggling that no one else could fix! Thanks sooo much!!
Glad it was helpful.
You're a complete lifesaver.
I haven't jumped into CMake until recently and it really feels like a black box. Makefiles were much simpler to use, but oh well.
It takes time to learn all of this.
You're welcome
Ugh thank you sir. Spent 2 days dealing with vcpkg issues and of course there's a much more simple way 😅. Much appreciated!
You're welcome.
how can i do this with multiple files(i.e. having a main.cpp and a window.cpp etc) i tried everything but everytime it says "undefined reference to `InitWindow'" and other function names
I have a video on compiling multiple files:
czcams.com/video/FFXCqKMUZ7Y/video.html
It sounds like you either:
- Need to write a window.h header file with prototypes for InitWindow() and other functions (and then #include "window.h" in main.cpp)
- Or, need to add #include "window.h" in main.cpp
"Promosm" 🤤