
While it served a purpose (granting the ability to build `.bba` files separately from the rest of nextpnr), it made things excessively convoluted, especially around paths. This commit removes the ability to pre-generate chip databases. As far as I know, I was the primary user of that feature. It can be added back if there is demand for it. In exchange the per-family `CMakeLists.txt` files are now much easier to understand.
14 lines
677 B
CMake
14 lines
677 B
CMake
set(MISTRAL_ROOT "" CACHE STRING "Mistral install path")
|
|
set(MISTRAL_DONT_INSTALL ON)
|
|
|
|
add_subdirectory(${MISTRAL_ROOT}/tools ${CMAKE_CURRENT_BINARY_DIR}/tools)
|
|
add_subdirectory(${MISTRAL_ROOT}/generator ${CMAKE_CURRENT_BINARY_DIR}/generator)
|
|
add_subdirectory(${MISTRAL_ROOT}/libmistral ${CMAKE_CURRENT_BINARY_DIR}/libmistral)
|
|
|
|
find_package(LibLZMA REQUIRED)
|
|
|
|
foreach (family_target ${family_targets})
|
|
target_include_directories(${family_target} PRIVATE ${MISTRAL_ROOT}/libmistral ${CMAKE_CURRENT_BINARY_DIR}/tools ${CMAKE_CURRENT_BINARY_DIR}/libmistral ${LIBLZMA_INCLUDE_DIRS})
|
|
target_link_libraries(${family_target} PRIVATE mistral ${LIBLZMA_LIBRARIES})
|
|
endforeach()
|