![]() One project can have multiple “targets” (which roughly correspond to “projects” in VS). The project is similar to a concept of “solution” in Visual Studio terminology. Some notes about libraries which don’t behave wellįirst, let’s create a bunch of files and directories so that we have a structure like this:.Using FetchContent with local source directories.Adding Dear ImGui and ImGui-SFML as dependencies.The source code of the project in the article can be found here. ![]() If you just want to learn how to manage dependencies with CMake with FetchContent, you can just jump straight to Adding SFML as a dependency section. This article will also be a good starting point if you’ve never used CMake before. It’s good to understand everything you do and be able to do it from scratch without any guides. ![]() I’ll try to explain everything as I go on down to a “basic” things. You won’t need to use prebuilt libraries ever again. The project will clone these dependencies’ source code from Github and build them. We’ll go step by step and create a simple project which will have SFML, Dear ImGui and ImGui-SFML as its dependencies. ![]() CMake’s FetchContent makes it much more manageable and easy to do. Building C++ projects and managing dependencies is hard.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |