Blame cmake-install.patch

d78e01
Index: libfixmath-master/CMakeLists.txt
d78e01
===================================================================
d78e01
--- libfixmath-master.orig/CMakeLists.txt
d78e01
+++ libfixmath-master/CMakeLists.txt
d78e01
@@ -10,6 +10,8 @@ set(CMAKE_CXX_STANDARD 11)
d78e01
 set(CMAKE_CXX_STANDARD_REQUIRED ON)
d78e01
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra -Werror=return-type")
d78e01
 
d78e01
+include(GNUInstallDirs)
d78e01
+
d78e01
 include(libfixmath/libfixmath.cmake)
d78e01
 include(tests/tests.cmake)
d78e01
 
d78e01
Index: libfixmath-master/libfixmath/libfixmath.cmake
d78e01
===================================================================
d78e01
--- libfixmath-master.orig/libfixmath/libfixmath.cmake
d78e01
+++ libfixmath-master/libfixmath/libfixmath.cmake
d78e01
@@ -3,4 +3,11 @@ file(GLOB libfixmath-srcs libfixmath/*.c
d78e01
 add_library(fixmath SHARED ${libfixmath-srcs})
d78e01
 
d78e01
 target_include_directories(fixmath INTERFACE
d78e01
-  ${CMAKE_CURRENT_SOURCE_DIR})
d78e01
\ No newline at end of file
d78e01
+  ${CMAKE_CURRENT_SOURCE_DIR})
d78e01
+
d78e01
+install(TARGETS fixmath
d78e01
+        DESTINATION ${CMAKE_INSTALL_LIBDIR})
d78e01
+
d78e01
+file(GLOB libfixmath-headers libfixmath/*.h libfixmath/*.hpp)
d78e01
+install(FILES ${libfixmath-headers}
d78e01
+        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libfixmath)