mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 06:08:03 +08:00
[imgui-node-editor] New port (#33508)
This commit is contained in:
parent
c6ea5d087a
commit
ada12c9ec2
60
ports/imgui-node-editor/CMakeLists.txt
Normal file
60
ports/imgui-node-editor/CMakeLists.txt
Normal file
@ -0,0 +1,60 @@
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
project(imgui-node-editor)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
|
||||
find_package(imgui CONFIG REQUIRED)
|
||||
get_target_property(IMGUI_INCLUDE_DIRS imgui::imgui
|
||||
INTERFACE_INCLUDE_DIRECTORIES
|
||||
)
|
||||
|
||||
add_library(${PROJECT_NAME} "")
|
||||
|
||||
target_include_directories(
|
||||
${PROJECT_NAME}
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
PRIVATE
|
||||
${IMGUI_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
target_sources(
|
||||
${PROJECT_NAME}
|
||||
PRIVATE
|
||||
crude_json.cpp
|
||||
imgui_canvas.cpp
|
||||
imgui_node_editor.cpp
|
||||
imgui_node_editor_api.cpp
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS ${PROJECT_NAME}
|
||||
EXPORT unofficial-${PROJECT_NAME}-target
|
||||
ARCHIVE DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
if (NOT IMGUI_NODE_EDITOR_SKIP_HEADERS)
|
||||
install(
|
||||
FILES
|
||||
crude_json.h
|
||||
imgui_bezier_math.h
|
||||
imgui_bezier_math.inl
|
||||
imgui_canvas.h
|
||||
imgui_extra_math.h
|
||||
imgui_extra_math.inl
|
||||
imgui_node_editor.h
|
||||
imgui_node_editor_internal.h
|
||||
imgui_node_editor_internal.inl
|
||||
DESTINATION include/${PROJECT_NAME}
|
||||
)
|
||||
endif()
|
||||
|
||||
install(
|
||||
EXPORT unofficial-${PROJECT_NAME}-target
|
||||
NAMESPACE unofficial::${PROJECT_NAME}::
|
||||
FILE unofficial-${PROJECT_NAME}-config.cmake
|
||||
DESTINATION share/unofficial-${PROJECT_NAME}
|
||||
)
|
24
ports/imgui-node-editor/portfile.cmake
Normal file
24
ports/imgui-node-editor/portfile.cmake
Normal file
@ -0,0 +1,24 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO thedmd/imgui-node-editor
|
||||
REF v${VERSION}
|
||||
SHA512 7dbc34a7af1554a7e683e0b55d18fc08cf5832bf5d6a57a30820e7ef98a6fbb5a65a7287f6250d3b6f47b89ac0499f51fbe19d9c11850e26f74e3b0e806abb1b
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS_DEBUG
|
||||
-DIMGUI_NODE_EDITOR_SKIP_HEADERS=ON
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT} CONFIG_PATH share/unofficial-${PORT})
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
18
ports/imgui-node-editor/vcpkg.json
Normal file
18
ports/imgui-node-editor/vcpkg.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "imgui-node-editor",
|
||||
"version": "0.9.2",
|
||||
"description": "Node Editor built using Dear ImGui",
|
||||
"homepage": "https://github.com/thedmd/imgui-node-editor",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
"imgui",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -3388,6 +3388,10 @@
|
||||
"baseline": "1.89.9",
|
||||
"port-version": 0
|
||||
},
|
||||
"imgui-node-editor": {
|
||||
"baseline": "0.9.2",
|
||||
"port-version": 0
|
||||
},
|
||||
"imgui-sfml": {
|
||||
"baseline": "2.5",
|
||||
"port-version": 4
|
||||
|
9
versions/i-/imgui-node-editor.json
Normal file
9
versions/i-/imgui-node-editor.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "26e2cf3260ea1e08e61912431635f49d24b6ea87",
|
||||
"version": "0.9.2",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user