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/fpga/gpu/CMakeLists.txt
Steffen Vogel 4b36073711 Use spaces for indention of CMake files
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-02-29 23:18:47 +01:00

38 lines
765 B
CMake

## CMakeLists.txt
#
# Author: Daniel Krebs <github@daniel-krebs.net>
# SPDX-FileCopyrightText: 2018 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0
add_subdirectory(thirdparty/gdrcopy)
add_library(villas-gpu
SHARED
src/gpu.cpp
src/kernels.cu
)
target_compile_options(villas-gpu PRIVATE -g)
set_source_files_properties(src/gpu.cpp PROPERTIES
LANGUAGE CUDA
)
target_include_directories(villas-gpu
PRIVATE
/opt/cuda/include
)
target_link_libraries(villas-gpu
PUBLIC
villas-common
gdrapi
cuda
)
target_include_directories(villas-gpu
PUBLIC
${CMAKE_CURRENT_LIST_DIR}/include
PRIVATE
${CMAKE_CURRENT_LIST_DIR}
)