mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 15:49:01 +08:00
Merge pull request #8605 from JackBoosY/dev/jack/imgui_add_example
[imgui]Add feature example in windows.
This commit is contained in:
commit
7fe358bba1
@ -1,4 +1,8 @@
|
||||
Source: imgui
|
||||
Version: 1.73
|
||||
Version: 1.73-1
|
||||
Homepage: https://github.com/ocornut/imgui
|
||||
Description: Bloat-free Immediate Mode Graphical User interface for C++ with minimal dependencies.
|
||||
|
||||
Feature: example
|
||||
Description: build with examples
|
||||
Build-Depends: glfw3, freeglut, opengl, sdl1
|
||||
|
@ -20,6 +20,25 @@ vcpkg_configure_cmake(
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
if ("example" IN_LIST FEATURES)
|
||||
if (NOT VCPKG_TARGET_IS_WINDOWS)
|
||||
message(FATAL_ERROR "Feature example only support windows.")
|
||||
endif()
|
||||
vcpkg_build_msbuild(
|
||||
USE_VCPKG_INTEGRATION
|
||||
PROJECT_PATH ${SOURCE_PATH}/examples/imgui_examples.sln
|
||||
)
|
||||
|
||||
# Install headers
|
||||
file(GLOB IMGUI_EXAMPLE_INCLUDES ${SOURCE_PATH}/examples/*.h)
|
||||
file(INSTALL ${IMGUI_EXAMPLE_INCLUDES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
||||
|
||||
# Install tools
|
||||
file(GLOB_RECURSE IMGUI_EXAMPLE_BINARIES ${SOURCE_PATH}/examples/*${VCPKG_TARGET_EXECUTABLE_SUFFIX})
|
||||
file(INSTALL ${IMGUI_EXAMPLE_BINARIES} DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
|
||||
endif()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_fixup_cmake_targets()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user