Skip to content

Commit

Permalink
add GNUInstallDirs module
Browse files Browse the repository at this point in the history
  • Loading branch information
haejoonkim-lunit committed Sep 16, 2019
1 parent 8c3fa1f commit 0f632c4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -302,16 +302,18 @@ target_link_libraries(getSupportedAPITest PUBLIC ${PROTOBUF_LIB} nvonnxparser_st
# --------------------------------
# Installation
# --------------------------------
include(GNUInstallDirs)

install(TARGETS onnx2trt
nvonnxparser nvonnxparser_runtime
nvonnxparser_static nvonnxparser_runtime_static
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)

install(FILES ${HEADERS}
DESTINATION include
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)

SET(CPACK_GENERATOR "DEB")
Expand Down

0 comments on commit 0f632c4

Please sign in to comment.