https://github.com/developer239/cmake-modern-findimgui-sdl
FindImgui submodule.
https://github.com/developer239/cmake-modern-findimgui-sdl
Last synced: 3 months ago
JSON representation
FindImgui submodule.
- Host: GitHub
- URL: https://github.com/developer239/cmake-modern-findimgui-sdl
- Owner: developer239
- License: isc
- Created: 2022-11-30T12:44:29.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-11T11:26:46.000Z (over 2 years ago)
- Last Synced: 2025-08-31T03:48:03.077Z (9 months ago)
- Language: CMake
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# CMake Modern FindImGui(SDL)
Add this repository as a submodule to your project:
```cmake
git submodule add https://github.com/developer239/cmake-modern-findimgui-sdl cmake/imgui
```
Include:
```cmake
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/imgui)
```
Find package:
**Note**: FindImgui file uses `${SDL2_INCLUDE_DIR}` so you need to have SDL2 installed and you need to find it first or set the variable manually. You can find 📚 [minimal ImGui + SDL + CMake example here](https://github.com/developer239/minimal-cmake-sdl-imgui-example).
```cmake
find_package(Imgui REQUIRED)
```
Link:
```cmake
target_link_libraries(${PROJECT_NAME} PUBLIC Imgui)
```