18 lines
383 B
CMake
18 lines
383 B
CMake
|
if (TARGET imgui)
|
||
|
return()
|
||
|
endif()
|
||
|
|
||
|
set(_imgui_SourceDir ${IMGUI_NODE_EDITOR_ROOT_DIR}/external/imgui)
|
||
|
set(_imgui_BinaryDir ${CMAKE_BINARY_DIR}/external/imgui)
|
||
|
|
||
|
add_subdirectory(${_imgui_SourceDir} ${_imgui_BinaryDir})
|
||
|
|
||
|
include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
|
||
|
|
||
|
find_package_handle_standard_args(
|
||
|
imgui
|
||
|
REQUIRED_VARS
|
||
|
_imgui_SourceDir
|
||
|
)
|
||
|
|