diff --git a/CMakeLists.txt b/CMakeLists.txt index a1937f19..fcfc0a36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -267,16 +267,18 @@ target_link_libraries(getSupportedAPITest PUBLIC ${PROTOBUF_LIB} nvonnxparser_st # -------------------------------- # Installation # -------------------------------- +include(GNUInstallDirs) + install(TARGETS onnx2trt nvonnxparser nvonnxparser_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")