#Adding extensions to existing libraries

15 messages · Page 1 of 1 (latest)

sudden oasis
#

Hello. Recently, I have been using SDL2 and have needed to use the SDL2_TTF library extension. I was wondering if there was a standard practice to include this extensions within your program. Does the contents of the extensions get added to the original folder, or are they included separately?

spiral gobletBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

teal herald
#

just add the lib to linker and the header

#

gcc ... -l"path<SDL2_TTF.lib>"

#

thats basically it

#

path<SDL...> being the relative path to lib file

#

if you already defined library folder

sudden oasis
#

I am using cmake to build my project

teal herald
#

you just need to add the lib file

#

idk how you do that in cmake since i'm not familiar

sudden oasis
#

I just figured out how to make it work with all the libraries in the same directory

#

I needed to add a few "find" files into a cmake folder

#

Thank you for the advice though, it did help me test the folders in vscode first

#

!solved