Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eliasdaler/imgui-sfml-fetchcontent
Example of using CMake's FetchContent module and imGui-SFML
https://github.com/eliasdaler/imgui-sfml-fetchcontent
cmake cpp fetchcontent gamedev imgui imgui-sfml modern-cmake sfml
Last synced: about 2 months ago
JSON representation
Example of using CMake's FetchContent module and imGui-SFML
- Host: GitHub
- URL: https://github.com/eliasdaler/imgui-sfml-fetchcontent
- Owner: eliasdaler
- License: mit
- Created: 2019-05-07T13:56:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-25T15:10:58.000Z (9 months ago)
- Last Synced: 2024-08-02T13:26:09.361Z (5 months ago)
- Topics: cmake, cpp, fetchcontent, gamedev, imgui, imgui-sfml, modern-cmake, sfml
- Language: CMake
- Size: 11.7 KB
- Stars: 28
- Watchers: 6
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
(WIP) CMake FetchContent example
==========================This is WIP example of using CMake FetchContent in real world scenario. It
downloads ImGui, SFML and ImGui-SFML and then a simple application uses these
dependencies for building.This example is interesting, because ImGui-SFML depends on both ImGui and SFML,
so you can also see how fetched dependencies can work with each other is well.Building is simple, just do:
```sh
mkdir build
cd build
cmake
cmake --build .
./src/imgui-sfml-example # or .\src\Debug\imgui-sfml-example.exe if you're on Windows
```Options
-------You can also set the following options when building:
* `USE_SYSTEM_DEPS` (`OFF` by default) - search for SFML installed on system instead of fetching it
* `LINK_DEPS_STATIC` (`ON` by default) - link dependencies staticallyDepencies
---CMake >= 3.12
Also, if you're on Linux, you'll need to install dependencies for building SFML
specified
[here](https://www.sfml-dev.org/tutorials/2.5/compile-with-cmake.php#installing-dependencies).