mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-16 00:00:02 +01:00

And various other cleanups and harmonizations Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
46 lines
1.1 KiB
CMake
46 lines
1.1 KiB
CMake
|
|
# CMakeLists.
|
|
#
|
|
# Author: Steffen Vogel <post@steffenvogel.de>
|
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set(API_SRC
|
|
session.cpp
|
|
request.cpp
|
|
response.cpp
|
|
universal.cpp
|
|
|
|
requests/node.cpp
|
|
requests/path.cpp
|
|
requests/universal.cpp
|
|
|
|
requests/status.cpp
|
|
requests/capabiltities.cpp
|
|
requests/config.cpp
|
|
requests/shutdown.cpp
|
|
requests/restart.cpp
|
|
requests/nodes.cpp
|
|
requests/node_info.cpp
|
|
requests/node_action.cpp
|
|
requests/node_stats.cpp
|
|
requests/node_stats_reset.cpp
|
|
requests/node_file.cpp
|
|
requests/paths.cpp
|
|
requests/path_info.cpp
|
|
requests/path_action.cpp
|
|
|
|
requests/universal/status.cpp
|
|
requests/universal/info.cpp
|
|
requests/universal/channel.cpp
|
|
requests/universal/channels.cpp
|
|
)
|
|
|
|
if(WITH_GRAPHVIZ)
|
|
list(APPEND API_SRC requests/graph.cpp)
|
|
list(APPEND LIBRARIES PkgConfig::CGRAPH PkgConfig::GVC)
|
|
endif()
|
|
|
|
add_library(api STATIC ${API_SRC})
|
|
target_include_directories(api PUBLIC ${INCLUDE_DIRS})
|
|
target_link_libraries(api PUBLIC ${LIBRARIES})
|