forked from llvm/circt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
58 lines (51 loc) · 1.29 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
add_subdirectory(lib)
add_subdirectory(CAPI)
configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
MAIN_CONFIG
${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
)
configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.py.in
${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg.py
MAIN_CONFIG
${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.cfg.py
)
set(CIRCT_TEST_DEPENDS
FileCheck count not
split-file
arcilator
circt-capi-ir-test
circt-capi-om-test
circt-capi-firrtl-test
circt-capi-firtool-test
circt-as
circt-dis
circt-opt
circt-translate
circt-reduce
handshake-runner
firtool
hlstool
ibistool
om-linker
)
if (CIRCT_GTEST_AVAILABLE)
list(APPEND CIRCT_TEST_DEPENDS CIRCTUnitTests)
endif()
if(CIRCT_LLHD_SIM_ENABLED)
list(APPEND CIRCT_TEST_DEPENDS llhd-sim)
list(APPEND CIRCT_TEST_DEPENDS circt-llhd-signals-runtime-wrappers)
endif()
if(CIRCT_SLANG_FRONTEND_ENABLED)
list(APPEND CIRCT_TEST_DEPENDS circt-verilog)
endif()
add_lit_testsuite(check-circt "Running the CIRCT regression tests"
${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${CIRCT_TEST_DEPENDS}
)
set_target_properties(check-circt PROPERTIES FOLDER "Tests")
add_lit_testsuites(CIRCT ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${CIRCT_TEST_DEPENDS}
)