-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to build as library? #64
Comments
Hi @Journeyman-dev, a total CMake noob myself, but I have been using Glitter in a small hobby project from time to time in the last years. It seems to me you could just swap out add_executable() in the CMakeLists.txt with add_library() using the desired options, like STATIC for example. What happens if you try that? |
I tried something like that: https://gist.github.com/Journeyman-dev/dc303ebe151db6b902c9521042d0ec77 assimp keeps putting its own library files in a different place. Also, the header files are all over the place. Seems like this is not very convenient after all. |
Found this: https://stackoverflow.com/questions/27771347/assimp-with-cmake Maybe it can help to include assimp in your lib? |
I am currently learning more about CMake, and I am wondering how I would modify Glitter so it outputs all the included libraries as static and/or dynamic libraries to include in projects along side their h files, instead of me having to work within the Glitter project within the generated solution.
The text was updated successfully, but these errors were encountered: