2018-06-25 17:03:09 +02:00
|
|
|
## CMakeLists.txt
|
|
|
|
#
|
2023-01-07 17:20:15 +01:00
|
|
|
# Author: Daniel Krebs <github@daniel-krebs.net>
|
2023-09-08 11:35:18 +02:00
|
|
|
# SPDX-FileCopyrightText: 2018 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
2023-01-07 17:20:15 +01:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2018-06-25 17:03:09 +02:00
|
|
|
|
2017-11-21 21:31:08 +01:00
|
|
|
set(SOURCES
|
2024-02-29 21:40:05 +01:00
|
|
|
dma.cpp
|
|
|
|
fifo.cpp
|
|
|
|
fpga.cpp
|
|
|
|
logging.cpp
|
|
|
|
main.cpp
|
|
|
|
rtds.cpp
|
|
|
|
timer.cpp
|
2017-11-21 21:31:08 +01:00
|
|
|
)
|
|
|
|
|
2020-06-11 23:55:05 +02:00
|
|
|
# rtds_rtt.cpp
|
|
|
|
# hls.cpp
|
|
|
|
# intc.cpp
|
|
|
|
|
2020-06-14 22:11:58 +02:00
|
|
|
add_executable(unit-tests-fpga ${SOURCES})
|
2018-08-21 14:56:15 +02:00
|
|
|
|
2020-06-11 23:55:05 +02:00
|
|
|
if (CMAKE_CUDA_COMPILER)
|
2024-02-29 21:40:05 +01:00
|
|
|
enable_language(CUDA)
|
|
|
|
target_sources(unit-tests-fpga PRIVATE
|
|
|
|
gpu.cpp rtds2gpu.cpp gpu_kernels.cu)
|
2020-06-11 23:55:05 +02:00
|
|
|
endif ()
|
2018-05-16 10:58:18 +02:00
|
|
|
|
2020-06-14 22:11:58 +02:00
|
|
|
target_include_directories(unit-tests-fpga PUBLIC
|
2024-02-29 21:40:05 +01:00
|
|
|
../include
|
|
|
|
${CRITERION_INCLUDE_DIRECTORIES}
|
2017-11-21 21:31:08 +01:00
|
|
|
)
|
|
|
|
|
2020-06-14 22:11:58 +02:00
|
|
|
target_link_libraries(unit-tests-fpga PUBLIC
|
2024-02-29 21:40:05 +01:00
|
|
|
villas-fpga
|
|
|
|
${CRITERION_LIBRARIES}
|
2017-11-21 21:31:08 +01:00
|
|
|
)
|
2023-03-21 10:47:45 +01:00
|
|
|
|
2023-03-21 12:26:13 +01:00
|
|
|
add_executable(villasfpga-dma dma.c)
|
2023-03-21 10:47:45 +01:00
|
|
|
|
|
|
|
target_include_directories(villasfpga-dma PUBLIC
|
2024-02-29 21:40:05 +01:00
|
|
|
../include
|
2023-03-21 10:47:45 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(villasfpga-dma PUBLIC
|
2024-02-29 21:40:05 +01:00
|
|
|
villas-fpga
|
2023-03-21 10:47:45 +01:00
|
|
|
)
|