git.s-ol.nu ~forks/DiligentTools / 75cc601
Diligent-Imgui: added imgui_stdlib.cpp/h to the project assiduous 1 year, 3 months ago
1 changed file(s) with 14 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
11
22 project(Diligent-Imgui CXX)
33
4 set(DEAR_IMGUI_PATH ../ThirdParty/imgui)
4 set(DEAR_IMGUI_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../ThirdParty/imgui")
55 set(IMGUIZMO_QUAT_PATH ../ThirdParty/imGuIZMO.quat)
66
77 set(DEAR_IMGUI_INCLUDE
1010 ${DEAR_IMGUI_PATH}/imstb_rectpack.h
1111 ${DEAR_IMGUI_PATH}/imstb_textedit.h
1212 ${DEAR_IMGUI_PATH}/imstb_truetype.h
13 ${DEAR_IMGUI_PATH}/misc/cpp/imgui_stdlib.h
1314 )
1415
1516 set(DEAR_IMGUI_INTERFACE
2021 ${DEAR_IMGUI_PATH}/imgui.cpp
2122 ${DEAR_IMGUI_PATH}/imgui_draw.cpp
2223 ${DEAR_IMGUI_PATH}/imgui_widgets.cpp
24 ${DEAR_IMGUI_PATH}/misc/cpp/imgui_stdlib.cpp
2325 )
2426
2527 set(SOURCE
6264 list(APPEND INTERFACE interface/ImGuiImplIOS.hpp)
6365 endif()
6466
65 add_library(Diligent-Imgui STATIC ${SOURCE} ${INCLUDE} ${INTERFACE} ${DEAR_IMGUI_SOURCE} ${DEAR_IMGUI_INCLUDE} ${DEAR_IMGUI_INTERFACE} ${IMGUIZMO_QUAT_SOURCE})
67 add_library(Diligent-Imgui STATIC
68 ${SOURCE}
69 ${INCLUDE}
70 ${INTERFACE}
71 ${DEAR_IMGUI_SOURCE}
72 ${DEAR_IMGUI_INCLUDE}
73 ${DEAR_IMGUI_INTERFACE}
74 ${IMGUIZMO_QUAT_SOURCE}
75 )
76
6677 set_common_target_properties(Diligent-Imgui)
6778
6879 target_include_directories(Diligent-Imgui
8293 target_compile_definitions(Diligent-Imgui PRIVATE IMGUI_DISABLE_WIN32_FUNCTIONS)
8394 endif()
8495
85 source_group("dear_imgui" FILES ${DEAR_IMGUI_SOURCE} ${DEAR_IMGUI_INCLUDE} ${DEAR_IMGUI_INTERFACE})
96 source_group(TREE ${DEAR_IMGUI_PATH} PREFIX "dear_imgui" FILES ${DEAR_IMGUI_SOURCE} ${DEAR_IMGUI_INCLUDE} ${DEAR_IMGUI_INTERFACE})
8697 source_group("src" FILES ${SOURCE})
8798 source_group("include" FILES ${INCLUDE})
8899 source_group("interface" FILES ${INTERFACE})