1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-30 00:00:11 +01:00
VILLASnode/tools/CMakeLists.txt
Steffen Vogel 7eec1bb753 update Steffens mail address
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2022-12-16 23:44:07 +01:00

38 lines
950 B
CMake

# CMakeLists.
#
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################
if(CMAKE_SYSTEM_NAME STREQUAL Linux)
add_executable(rmshm rmshm.cpp)
target_link_libraries(rmshm PUBLIC Threads::Threads rt)
add_executable(rmsem rmsem.cpp)
target_link_libraries(rmsem PUBLIC Threads::Threads rt)
list(APPEND TOOLS rmsem rmshm)
endif()
install(
TARGETS ${TOOLS}
COMPONENT tools
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
install(
PROGRAMS villas
COMPONENT bin
DESTINATION ${CMAKE_INSTALL_BINDIR}
RENAME villas
)
install(
PROGRAMS villas-api.sh
COMPONENT bin
DESTINATION ${CMAKE_INSTALL_BINDIR}
RENAME villas-api
)