mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 20:23:41 +08:00
2d2b7d172d
Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
59 lines
1.2 KiB
CMake
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 ${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 ${PROJECT_NAME}-target
|
|
NAMESPACE ${PROJECT_NAME}::
|
|
FILE ${PROJECT_NAME}-config.cmake
|
|
DESTINATION share/${PROJECT_NAME}
|
|
)
|