vcpkg/ports/imguizmo/CMakeLists.txt
Rémy Tassoux b108771d0a
[imgui] Update to 1.90.7 (#39017)
Update imgui port from 1.90.6 to 1.90.7:
https://github.com/ocornut/imgui/releases/tag/v1.90.7

- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [x] SHA512s are updated for each updated download.
- [ ] ~~The "supports" clause reflects platforms that may be fixed by
this new version.~~
- [ ] ~~Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.~~
- [ ] ~~Any patches that are no longer applied are deleted from the
port's directory.~~
- [x] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [x] Only one version is added to each modified port's versions file.
2024-05-30 10:25:32 -07:00

59 lines
1.2 KiB
CMake

cmake_minimum_required(VERSION 3.8)
project(imguizmo)
set(CMAKE_CXX_STANDARD 11)
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
GraphEditor.cpp
ImCurveEdit.cpp
ImGradient.cpp
ImGuizmo.cpp
ImSequencer.cpp
)
install(
TARGETS ${PROJECT_NAME}
EXPORT unofficial-${PROJECT_NAME}-target
ARCHIVE DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
)
if (NOT IMGUIZMO_SKIP_HEADERS)
install(
FILES
GraphEditor.h
ImCurveEdit.h
ImGradient.h
ImGuizmo.h
ImSequencer.h
ImZoomSlider.h
DESTINATION include
)
endif()
install(
EXPORT unofficial-${PROJECT_NAME}-target
NAMESPACE unofficial::${PROJECT_NAME}::
FILE unofficial-${PROJECT_NAME}-config.cmake
DESTINATION share/unofficial-${PROJECT_NAME}
)