Description: install the library in expected directories
 We add CMake install directives in order to see the library files installed in
 the expected multiarch compatible locations.
Author: Jérémy Bobbio <lunar@debian.org>
Author: Mattia Rizzolo <mattia@debian.org>
Forwarded: https://github.com/trendmicro/tlsh/pull/110
Last-Update: 2021-10-12

--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -79,11 +79,13 @@
                                                  SOVERSION "${VERSION_MAJOR}")
 endif()
 
+include(GNUInstallDirs)
+
 if(TLSH_SHARED_LIBRARY)
-    install(TARGETS tlsh_static tlsh_shared DESTINATION lib)
+    install(TARGETS tlsh_static tlsh_shared DESTINATION ${CMAKE_INSTALL_LIBDIR})
 else()
-    install(TARGETS tlsh_static             DESTINATION lib)
+    install(TARGETS tlsh_static             DESTINATION ${CMAKE_INSTALL_LIBDIR})
 endif()
 
-install(FILES ../include/tlsh.h DESTINATION include/tlsh)
-install(FILES ../include/tlsh_version.h DESTINATION include/tlsh)
+install(FILES ../include/tlsh.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/tlsh)
+install(FILES ../include/tlsh_version.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/tlsh)
