2021-07-22 22:05:05 +01:00
|
|
|
cmake_minimum_required(VERSION 3.8)
|
|
|
|
project(imguizmo)
|
|
|
|
|
2024-05-30 19:25:32 +02:00
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
|
2021-07-22 22:05:05 +01:00
|
|
|
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
|
2024-05-30 19:25:32 +02:00
|
|
|
GraphEditor.cpp
|
|
|
|
ImCurveEdit.cpp
|
|
|
|
ImGradient.cpp
|
|
|
|
ImGuizmo.cpp
|
|
|
|
ImSequencer.cpp
|
2021-07-22 22:05:05 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS ${PROJECT_NAME}
|
2024-09-03 12:26:57 -07:00
|
|
|
EXPORT ${PROJECT_NAME}-target
|
2021-07-22 22:05:05 +01:00
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
)
|
|
|
|
|
|
|
|
if (NOT IMGUIZMO_SKIP_HEADERS)
|
|
|
|
install(
|
|
|
|
FILES
|
2024-05-30 19:25:32 +02:00
|
|
|
GraphEditor.h
|
|
|
|
ImCurveEdit.h
|
|
|
|
ImGradient.h
|
|
|
|
ImGuizmo.h
|
|
|
|
ImSequencer.h
|
|
|
|
ImZoomSlider.h
|
2021-07-22 22:05:05 +01:00
|
|
|
DESTINATION include
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
install(
|
2024-09-03 12:26:57 -07:00
|
|
|
EXPORT ${PROJECT_NAME}-target
|
|
|
|
NAMESPACE ${PROJECT_NAME}::
|
|
|
|
FILE ${PROJECT_NAME}-config.cmake
|
|
|
|
DESTINATION share/${PROJECT_NAME}
|
2024-05-30 19:25:32 +02:00
|
|
|
)
|