Skip to content

Commit

Permalink
Add cmake install rules for native library
Browse files Browse the repository at this point in the history
  • Loading branch information
jamtho committed Oct 11, 2017
1 parent a144d71 commit f019ae5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/libais/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ ais25.cpp
ais26.cpp
ais27.cpp
)
set_target_properties(ais PROPERTIES PUBLIC_HEADER "ais.h")

include(GNUInstallDirs)

install(TARGETS ais
EXPORT LibaisConfig
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)

# Not yet handled:
# ais_py.cpp
Expand Down

0 comments on commit f019ae5

Please sign in to comment.