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

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

39 lines
765 B
Text
Raw Permalink Normal View History

2018-06-25 17:03:09 +02:00
## 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
2018-06-25 17:03:09 +02:00
2018-08-21 15:53:47 +02:00
add_subdirectory(thirdparty/gdrcopy)
2018-08-21 15:53:47 +02:00
add_library(villas-gpu
SHARED
src/gpu.cpp
src/kernels.cu
2018-08-21 15:53:47 +02:00
)
target_compile_options(villas-gpu PRIVATE -g)
2018-08-21 15:53:47 +02:00
set_source_files_properties(src/gpu.cpp PROPERTIES
LANGUAGE CUDA
2018-08-21 15:53:47 +02:00
)
2018-08-21 15:53:47 +02:00
target_include_directories(villas-gpu
PRIVATE
/opt/cuda/include
2018-08-21 15:53:47 +02:00
)
target_link_libraries(villas-gpu
PUBLIC
villas-common
gdrapi
cuda
2018-08-21 15:53:47 +02:00
)
target_include_directories(villas-gpu
PUBLIC
${CMAKE_CURRENT_LIST_DIR}/include
PRIVATE
${CMAKE_CURRENT_LIST_DIR}
2018-08-21 15:53:47 +02:00
)