Using Third Party Libraries Like RayLib in Your Project with CMake

Sdílet
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

Komentáře • 11

  • @dcdfm18bf18
    @dcdfm18bf18 Před 5 měsíci +3

    Amazing! you solved a week of struggling that no one else could fix! Thanks sooo much!!

  • @botchedaledrugikanal4215
    @botchedaledrugikanal4215 Před 4 měsíci +3

    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.

  • @killacam2971
    @killacam2971 Před 4 měsíci +4

    Ugh thank you sir. Spent 2 days dealing with vcpkg issues and of course there's a much more simple way 😅. Much appreciated!

  • @accountprincipale2293
    @accountprincipale2293 Před 8 měsíci

    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

    • @KeaSigmaDelta
      @KeaSigmaDelta  Před 8 měsíci +3

      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

  • @mauriedenzel2028
    @mauriedenzel2028 Před rokem

    "Promosm" 🤤