> configure(npc)

ysyx_22040000 李心杨
 Linux calcite 6.6.19 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar  1 12:35:11 UTC 2024 x86_64 GNU/Linux
  18:17:51  up   3:37,  2 users,  load average: 1.58, 0.74, 0.51
This commit is contained in:
tracer-ysyx 2024-03-07 18:17:51 +08:00 committed by xinyangli
parent ed7fca5a97
commit 16c8af7dea
5 changed files with 22 additions and 14 deletions

View file

@ -1,7 +1,6 @@
cmake_minimum_required(VERSION 3.20)
project(npc)
include(CTest)
set (CMAKE_CXX_STANDARD 11)
cmake_policy(SET CMP0144 NEW)
@ -84,15 +83,7 @@ foreach(TOPMODULE IN LISTS TOPMODULES)
add_dependencies(V${TOPMODULE} ChiselBuild_${TOPMODULE})
enable_testing()
add_test(V${TOPMODULE}_build
"${CMAKE_COMMAND}"
--build "${CMAKE_BINARY_DIR}"
--config "$<CONFIG>"
--target V${TOPMODULE}
)
set_tests_properties(V${TOPMODULE}_build PROPERTIES FIXTURES_SETUP V${TOPMODULE}_fixture)
add_test(V${TOPMODULE} V${TOPMODULE})
set_tests_properties(V${TOPMODULE} PROPERTIES FIXTURES_REQUIRED V${TOPMODULE}_fixture)
add_test(NAME V${TOPMODULE} COMMAND V${TOPMODULE})
# -- Add build tracking
add_custom_command(