aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/family.cmake
diff options
context:
space:
mode:
authorAlessandro Comodi <acomodi@antmicro.com>2021-03-12 20:04:51 +0100
committerAlessandro Comodi <acomodi@antmicro.com>2021-03-16 15:39:02 +0100
commit0b62e540a388287bed9c50b7a113b6a7eb87e541 (patch)
tree6629f6f8a8a1e02db8497c1579a83d8c29b2d51c /fpga_interchange/family.cmake
parentbd2da27e4e35e92ad91145921cf9c7d2c490a9df (diff)
downloadnextpnr-0b62e540a388287bed9c50b7a113b6a7eb87e541.tar.gz
nextpnr-0b62e540a388287bed9c50b7a113b6a7eb87e541.tar.bz2
nextpnr-0b62e540a388287bed9c50b7a113b6a7eb87e541.zip
fpga_interchange: address review comments
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
Diffstat (limited to 'fpga_interchange/family.cmake')
-rw-r--r--fpga_interchange/family.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/fpga_interchange/family.cmake b/fpga_interchange/family.cmake
index ec2d911e..cf92ef2e 100644
--- a/fpga_interchange/family.cmake
+++ b/fpga_interchange/family.cmake
@@ -12,9 +12,17 @@ set(PYTHON_INTERCHANGE_PATH $ENV{HOME}/python-fpga-interchange CACHE PATH "Path
set(INTERCHANGE_SCHEMA_PATH $ENV{HOME}/fpga_interchange_schema CACHE PATH "Path to the FPGA interchange schema dir")
add_subdirectory(3rdparty/fpga-interchange-schema/cmake/cxx_static)
+
include(${family}/examples/chipdb.cmake)
include(${family}/examples/tests.cmake)
+set(chipdb_dir ${CMAKE_CURRENT_BINARY_DIR}/${family}/chipdb)
+file(MAKE_DIRECTORY ${chipdb_dir})
+
+add_custom_target(all-${family}-tests)
+add_subdirectory(${family}/examples/devices)
+add_subdirectory(${family}/examples/tests)
+
foreach (target ${family_targets})
target_include_directories(${target} PRIVATE ${TCL_INCLUDE_PATH})
target_link_libraries(${target} PRIVATE ${TCL_LIBRARY})