Description: Add installation
Author: Simon Richter <sjr@debian.org>
Forwarded: no
Last-Update: 2025-01-05

Index: imgui-file-dialog-0.6.7/CMakeLists.txt
===================================================================
--- imgui-file-dialog-0.6.7.orig/CMakeLists.txt
+++ imgui-file-dialog-0.6.7/CMakeLists.txt
@@ -7,15 +7,20 @@ pkg_check_modules(imgui REQUIRED imgui)
 
 add_library(ImGuiFileDialog STATIC
     ImGuiFileDialog.cpp
-    ImGuiFileDialog.h
-    ImGuiFileDialogConfig.h
 )
 
-target_include_directories(ImGuiFileDialog PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
+set_target_properties(ImGuiFileDialog
+    PROPERTIES
+        PUBLIC_HEADER "ImGuiFileDialog.h;ImGuiFileDialogConfig.h"
+)
 
 target_link_libraries(ImGuiFileDialog
     PkgConfig::imgui)
 
+target_include_directories(ImGuiFileDialog PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
+
 if(UNIX)
     target_compile_options(ImGuiFileDialog PUBLIC "-Wno-unknown-pragmas")
 endif()
+
+install(TARGETS ImGuiFileDialog)
