
if (TARGET imgui_node_editor)
    return()
endif()

set(_imgui_node_editor_SourceDir ${IMGUI_NODE_EDITOR_DIR}/NodeEditor)
set(_imgui_node_editor_BinaryDir ${CMAKE_BINARY_DIR}/NodeEditor)

add_subdirectory(${_imgui_node_editor_SourceDir} ${_imgui_node_editor_BinaryDir})

include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)

find_package_handle_standard_args(
    imgui_node_editor
    REQUIRED_VARS
        _imgui_node_editor_SourceDir
)

