mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 17:51:47 +08:00
3547cd96d9
* [imguizmo] new port * [imguizmo] Apply suggestions from code review Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * [imguizmo] fix formatting * [imguizmo] fix version-date * [imguizmo] apply suggestions from code review Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> * [imguizmo] apply suggestions from code review Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> * [imguizmo] add std version requirement * [imguizmo] remove debug lib rename * [imguizmo] update to use v1.83 tag * [imguizmo] fixed hash Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>
59 lines
1.6 KiB
CMake
59 lines
1.6 KiB
CMake
cmake_minimum_required(VERSION 3.8)
|
|
project(imguizmo)
|
|
|
|
find_package(imgui CONFIG REQUIRED)
|
|
get_target_property(IMGUI_INCLUDE_DIRS imgui::imgui
|
|
INTERFACE_INCLUDE_DIRECTORIES
|
|
)
|
|
|
|
add_library(${PROJECT_NAME} "")
|
|
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
|
|
|
|
target_compile_options(${PROJECT_NAME} PRIVATE "-std=c++11")
|
|
|
|
target_include_directories(
|
|
${PROJECT_NAME}
|
|
PUBLIC
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
$<INSTALL_INTERFACE:include>
|
|
PRIVATE
|
|
${IMGUI_INCLUDE_DIRS}
|
|
)
|
|
|
|
target_sources(
|
|
${PROJECT_NAME}
|
|
PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/GraphEditor.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ImCurveEdit.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ImGradient.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ImGuizmo.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ImSequencer.cpp
|
|
)
|
|
|
|
install(
|
|
TARGETS ${PROJECT_NAME}
|
|
EXPORT ${PROJECT_NAME}_target
|
|
ARCHIVE DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
RUNTIME DESTINATION bin
|
|
)
|
|
|
|
if (NOT IMGUIZMO_SKIP_HEADERS)
|
|
install(
|
|
FILES
|
|
${CMAKE_CURRENT_SOURCE_DIR}/GraphEditor.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ImCurveEdit.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ImGradient.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ImGuizmo.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ImSequencer.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ImZoomSlider.h
|
|
DESTINATION include
|
|
)
|
|
endif()
|
|
|
|
install(
|
|
EXPORT ${PROJECT_NAME}_target
|
|
NAMESPACE ${PROJECT_NAME}::
|
|
FILE ${PROJECT_NAME}-config.cmake
|
|
DESTINATION share/${PROJECT_NAME}
|
|
) |