From 475b88184315fc3736b93cc996455d6a165fdd82 Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Wed, 10 Jan 2024 18:32:30 +0800 Subject: [PATCH] =?UTF-8?q?>=20configure(npc)=20=20ysyx=5F22040000=20?= =?UTF-8?q?=E6=9D=8E=E5=BF=83=E6=9D=A8=20=20Linux=20calcite=206.1.69=20#1-?= =?UTF-8?q?NixOS=20SMP=20PREEMPT=5FDYNAMIC=20Wed=20Dec=2020=2016:00:29=20U?= =?UTF-8?q?TC=202023=20x86=5F64=20GNU/Linux=20=20=2018:32:30=20=20up=202?= =?UTF-8?q?=20days=2017:33,=20=202=20users,=20=20load=20average:=200.59,?= =?UTF-8?q?=200.57,=200.71?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- npc/CMakeLists.txt | 8 ++++++-- npc/csrc/{ => Keyboard}/main.cpp | 0 2 files changed, 6 insertions(+), 2 deletions(-) rename npc/csrc/{ => Keyboard}/main.cpp (100%) diff --git a/npc/CMakeLists.txt b/npc/CMakeLists.txt index ea71a1f..6804494 100644 --- a/npc/CMakeLists.txt +++ b/npc/CMakeLists.txt @@ -52,7 +52,9 @@ foreach(TOPMODULE IN LISTS TOPMODULES) DEPENDS ${CMAKE_SOURCE_DIR}/constr/${TOPMODULE}.nxdc ) - add_executable(V${TOPMODULE}_nvboard csrc_nvboard/${TOPMODULE}/main.cpp ${CMAKE_CURRENT_BINARY_DIR}/${TOPMODULE}/auto_bind.cpp) + unset(SOURCES) + file(GLOB_RECURSE SOURCES csrc_nvboard/${TOPMODULE}/*.cpp) + add_executable(V${TOPMODULE}_nvboard ${SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/${TOPMODULE}/auto_bind.cpp) verilate(V${TOPMODULE}_nvboard TRACE COVERAGE THREADS TOP_MODULE ${TOPMODULE} @@ -67,7 +69,9 @@ foreach(TOPMODULE IN LISTS TOPMODULES) # -- Build Verilator executable and add to test - add_executable(V${TOPMODULE} csrc/main.cpp) + unset(SOURCES) + file(GLOB_RECURSE SOURCES csrc/${TOPMODULE}/*.cpp) + add_executable(V${TOPMODULE} ${SOURCES}) verilate(V${TOPMODULE} TRACE COVERAGE THREADS TOP_MODULE ${TOPMODULE} diff --git a/npc/csrc/main.cpp b/npc/csrc/Keyboard/main.cpp similarity index 100% rename from npc/csrc/main.cpp rename to npc/csrc/Keyboard/main.cpp