Skip to content

Commit

Permalink
ci: can block the installation using an environment variable (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
kibae authored Nov 2, 2024
1 parent 6a89d8e commit a446878
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,15 @@ if (NOT NO_ONNXRUNTIME_SERVER_TEST)
endif ()

# install
set_target_properties(onnxruntime_server_standalone PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
set_target_properties(${PROJECT_NAME}_static PROPERTIES OUTPUT_NAME ${PROJECT_NAME})

install(TARGETS onnxruntime_server_standalone DESTINATION bin)
install(TARGETS ${PROJECT_NAME} DESTINATION lib)
install(TARGETS ${PROJECT_NAME}_static DESTINATION lib RENAME ${PROJECT_NAME})
install(FILES onnxruntime_server.hpp DESTINATION include)
install(FILES transport/http/http_server.hpp DESTINATION include/transport/http)
install(FILES transport/tcp/tcp_server.hpp DESTINATION include/transport/tcp)
install(DIRECTORY utils DESTINATION include/utils)
if (NOT NO_ONNXRUNTIME_SERVER_INSTALL)
set_target_properties(onnxruntime_server_standalone PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
set_target_properties(${PROJECT_NAME}_static PROPERTIES OUTPUT_NAME ${PROJECT_NAME})

install(TARGETS onnxruntime_server_standalone DESTINATION bin)
install(TARGETS ${PROJECT_NAME} DESTINATION lib)
install(TARGETS ${PROJECT_NAME}_static DESTINATION lib RENAME ${PROJECT_NAME})
install(FILES onnxruntime_server.hpp DESTINATION include)
install(FILES transport/http/http_server.hpp DESTINATION include/transport/http)
install(FILES transport/tcp/tcp_server.hpp DESTINATION include/transport/tcp)
install(DIRECTORY utils DESTINATION include/utils)
endif ()

0 comments on commit a446878

Please sign in to comment.