Was ist die beste Methode, um eine vordefinierte Bibliothek in ein cmake-Projekt einzubinden? Ich möchte Freetype in das Projekt einzubeziehen ich arbeite und die Strukturdatei ist wie folgt:Kompilierte Bibliotheken hinzufügen und Dateien zu einem CMake-Projekt hinzufügen?
- Bauen
- MacOS
- Marke/
- XCode/
- Windows
- Visual Studio/
- Quelle
- Libs
- MacOS
- libfreetype
- Windows-
- freetype.dll
- umfasst
- freetype/(Verschiedene Header-Dateien, die automatisch von ftbuild.h enthalten sind)
- ftbuild.h (das ist, was ist im Code von meinem Verständnis enthalten.)
- MyProject
- main.cpp
- foo.cpp
- foo.h
Die Bibliothek bereits kompiliert wird. MyProject ist der Name des aktuellen Projekts.
Danke! Mike