Przeglądaj źródła

Merge gps_nmea/lib/minmea from https://github.com/kosma/minmea

Willy-JL 1 rok temu
rodzic
commit
e445ecb3b3
1 zmienionych plików z 13 dodań i 0 usunięć
  1. 13 0
      gps_nmea/lib/minmea/CMakeLists.txt

+ 13 - 0
gps_nmea/lib/minmea/CMakeLists.txt

@@ -37,3 +37,16 @@ if (SCAN_FOUND)
 else()
 else()
     MESSAGE(STATUS "scan-build not found, not scanning code")
     MESSAGE(STATUS "scan-build not found, not scanning code")
 endif()
 endif()
+
+include(GNUInstallDirs)
+
+install(TARGETS minmea
+    RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
+    LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
+    ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")
+install(FILES minmea.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+if(MSVC)
+    install(FILES compat/minmea_compat_windows.h
+        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
+        RENAME minmea_compat.h)
+endif()