mirror of
https://github.com/XRPLF/clio.git
synced 2026-04-29 15:37:53 +00:00
Builds the Linux packages with CPack. Generate them by running Conan with `--options:host "&:package=True" --options:host "&:static=True"` then after the build you can run `cpack .` in the build directory. @mathbunnyru Where do you think this should be built? QA needs a package per-commit. @godexsoft What to do with the `config.json` and service file. I can just remove them or strip the comment out but it still won't work out the box with the default `rippled.cfg`. Relates to #2191. --------- Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
14 lines
555 B
CMake
14 lines
555 B
CMake
set(CLIO_INSTALL_DIR "/opt/clio")
|
|
set(CMAKE_INSTALL_PREFIX "${CLIO_INSTALL_DIR}" CACHE PATH "Install prefix" FORCE)
|
|
|
|
set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
install(TARGETS clio_server DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
|
|
file(READ docs/examples/config/example-config.json config)
|
|
string(REGEX REPLACE "./clio_log" "/var/log/clio/" config "${config}")
|
|
file(WRITE ${CMAKE_BINARY_DIR}/install-config.json "${config}")
|
|
install(FILES ${CMAKE_BINARY_DIR}/install-config.json DESTINATION etc RENAME config.json)
|