Skip to content

jschmidt42/stingray-imgui-cmake

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stingray CMake support for ImGui

See https://www.stingrayengine.com for more information on Stingray.

Generate solution and Build

  1. Create CMake build folder

mkdir build && cd build

  1. Generate solution with CMake

cmake -G "Visual Studio 14 2015 Win64" "-DCMAKE_CONFIGURATION_TYPES=Debug;Dev;Release" "-DCMAKE_INSTALL_PREFIX=./out" ..

  1. Build solution

cmake --build ./ --target imgui --config Dev

  1. How to embed in a Stingray plugin using Cmake

In your stingray plugin CMakeLists.txt include the following snippet:

list(APPEND CMAKE_ARGS "-D${CACHE_VAR}${CACHE_VAR_TYPE}=${${CACHE_VAR}}")
ExternalProject_Add(imgui
    GIT_REPOSITORY https://github.com/jschmidt42/imgui-cmake.git
    CMAKE_ARGS "${CMAKE_ARGS};-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}"
)

Packages

No packages published

Languages

  • CMake 90.7%
  • C++ 9.3%