Skip to content

Commit

Permalink
Merge pull request #80 from uilianries/cmake/install
Browse files Browse the repository at this point in the history
[build] Execute installation steps for CMake
  • Loading branch information
kosma authored Sep 11, 2024
2 parents e368d84 + 2fcb26b commit 4abb6f8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,16 @@ if (SCAN_FOUND)
else()
MESSAGE(STATUS "scan-build not found, not scanning code")
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()

0 comments on commit 4abb6f8

Please sign in to comment.