2018-06-25 09:44:58 +02:00
|
|
|
# CMakeLists.
|
|
|
|
#
|
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
|
|
|
|
2019-04-19 14:52:52 +02:00
|
|
|
set(SRCS
|
|
|
|
villas-convert
|
2021-05-10 00:12:30 +02:00
|
|
|
villas-node
|
2019-04-19 14:52:52 +02:00
|
|
|
villas-pipe
|
|
|
|
villas-signal
|
2021-05-10 00:12:30 +02:00
|
|
|
villas-compare
|
|
|
|
villas-test-config
|
|
|
|
villas-test-rtt
|
2019-04-19 14:52:52 +02:00
|
|
|
)
|
|
|
|
|
2018-07-03 20:42:37 +02:00
|
|
|
add_executable(villas-node villas-node.cpp)
|
2018-07-17 17:56:23 +02:00
|
|
|
target_link_libraries(villas-node PUBLIC villas)
|
|
|
|
|
2019-03-31 19:58:29 +02:00
|
|
|
add_executable(villas-test-config villas-test-config.cpp)
|
|
|
|
target_link_libraries(villas-test-config PUBLIC villas)
|
2019-03-26 07:06:43 +01:00
|
|
|
|
2018-07-03 20:42:37 +02:00
|
|
|
add_executable(villas-test-rtt villas-test-rtt.cpp)
|
2018-07-17 17:56:23 +02:00
|
|
|
target_link_libraries(villas-test-rtt PUBLIC villas)
|
2018-06-21 09:36:49 +02:00
|
|
|
|
2021-05-10 00:12:30 +02:00
|
|
|
add_executable(villas-compare villas-compare.cpp)
|
|
|
|
target_link_libraries(villas-compare PUBLIC villas)
|
2018-07-17 17:56:23 +02:00
|
|
|
|
2019-04-05 10:47:24 +02:00
|
|
|
add_executable(villas-convert villas-convert.cpp)
|
|
|
|
target_link_libraries(villas-convert PUBLIC villas)
|
2018-07-17 17:56:23 +02:00
|
|
|
|
2019-04-05 10:47:24 +02:00
|
|
|
add_executable(villas-pipe villas-pipe.cpp)
|
|
|
|
target_link_libraries(villas-pipe PUBLIC villas Threads::Threads)
|
2018-06-25 09:44:58 +02:00
|
|
|
|
2019-04-05 10:47:24 +02:00
|
|
|
add_executable(villas-signal villas-signal.cpp)
|
|
|
|
target_link_libraries(villas-signal PUBLIC villas)
|
2018-07-03 18:27:44 +02:00
|
|
|
|
2021-02-24 09:17:53 +01:00
|
|
|
if(WITH_NODE_OPAL)
|
|
|
|
target_include_directories(villas-node PRIVATE ${OPAL_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(villas-node PRIVATE ${OPAL_LIBRARIES})
|
|
|
|
endif()
|
|
|
|
|
2019-06-30 14:46:55 +02:00
|
|
|
if(WITH_GRAPHVIZ)
|
|
|
|
add_executable(villas-graph villas-graph.cpp)
|
|
|
|
target_link_libraries(villas-graph PUBLIC villas)
|
2023-06-15 17:49:40 +02:00
|
|
|
|
|
|
|
list(APPEND SRCS villas-graph)
|
2019-06-30 14:46:55 +02:00
|
|
|
endif()
|
|
|
|
|
2019-04-19 14:52:52 +02:00
|
|
|
if(WITH_WEB)
|
|
|
|
add_executable(villas-relay villas-relay.cpp)
|
|
|
|
target_include_directories(villas-relay PRIVATE ${LIBWEBSOCKETS_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR})
|
|
|
|
target_link_libraries(villas-relay PRIVATE PkgConfig::UUID villas)
|
|
|
|
|
|
|
|
list(APPEND SRCS villas-relay)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(WITH_CONFIG)
|
|
|
|
add_executable(villas-conf2json villas-conf2json.cpp)
|
|
|
|
target_link_libraries(villas-conf2json PUBLIC villas)
|
|
|
|
|
|
|
|
list(APPEND SRCS villas-conf2json)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(LIBZMQ_FOUND)
|
|
|
|
add_executable(villas-zmq-keygen villas-zmq-keygen.cpp)
|
|
|
|
target_link_libraries(villas-zmq-keygen PUBLIC villas-common PkgConfig::LIBZMQ)
|
2023-06-15 17:49:40 +02:00
|
|
|
|
|
|
|
list(APPEND SRCS villas-zmq-keygen)
|
2019-04-19 14:52:52 +02:00
|
|
|
endif()
|
2018-06-21 09:36:49 +02:00
|
|
|
|
2019-04-05 10:47:24 +02:00
|
|
|
if(WITH_HOOKS)
|
2018-07-03 20:42:37 +02:00
|
|
|
add_executable(villas-hook villas-hook.cpp)
|
2018-07-17 17:56:23 +02:00
|
|
|
target_link_libraries(villas-hook PUBLIC villas)
|
2018-07-03 18:27:44 +02:00
|
|
|
|
2019-04-19 14:52:52 +02:00
|
|
|
list(APPEND SRCS villas-hook)
|
2018-06-21 09:36:49 +02:00
|
|
|
endif()
|
2018-06-25 09:44:58 +02:00
|
|
|
|
2019-04-19 14:52:52 +02:00
|
|
|
install(
|
|
|
|
TARGETS ${SRCS}
|
|
|
|
COMPONENT bin
|
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
|
|
)
|