1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00
VILLASnode/packaging/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1 KiB
Text
Raw Permalink Normal View History

2018-06-25 09:44:58 +02:00
# CMakeLists.txt.
#
2022-03-15 09:18:01 -04:00
# Author: Steffen Vogel <post@steffenvogel.de>
2022-03-15 09:28:57 -04:00
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
2022-07-04 18:20:03 +02:00
# SPDX-License-Identifier: Apache-2.0
2018-06-25 09:44:58 +02:00
if (NOT DEFINED DEPLOY_USER)
set(DEPLOY_USER deploy)
2018-06-25 09:44:58 +02:00
endif()
if (NOT DEFINED DEPLOY_HOST)
set(DEPLOY_USER acs-os-fein-website)
2018-06-25 09:44:58 +02:00
endif()
if (NOT DEFINED DEPLOY_PATH)
set(DEPLOY_USER /var/www/villas/node)
2018-06-25 09:44:58 +02:00
endif()
add_custom_target(deploy-dist
COMMAND rsync ${PROJECT_BINARY_DIR}/*.tar.gz ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}/src
2018-06-25 09:44:58 +02:00
)
2018-06-25 09:44:58 +02:00
add_custom_target(deploy-rpm
COMMAND rsync -a --progress ${PROJECT_BINARY_DIR}/*.rpm ${DEPLOY_USER}@${DEPLOY_HOST}:/var/www/packages/redhat/
COMMAND ssh ${DEPLOY_USER}@${DEPLOY_HOST} createrepo /var/www/packages/redhat
2018-06-25 09:44:58 +02:00
)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/libvillas.pc.in
${CMAKE_CURRENT_BINARY_DIR}/libvillas.pc
@ONLY
2018-06-25 09:44:58 +02:00
)
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/libvillas.pc
COMPONENT devel
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig
2018-06-25 09:44:58 +02:00
)