aboutsummaryrefslogtreecommitdiffstats
path: root/cyclonev/family.cmake
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-05-01 13:40:45 +0100
committergatecat <gatecat@ds0.me>2021-05-15 14:54:33 +0100
commitc3cb9aa3f6fb4039716132a23e29259496e43611 (patch)
tree84eae583439c9cb114c09c7eb578df0331265b54 /cyclonev/family.cmake
parent9901a5fafc8ea05e21eae434e4a56c921eb951e7 (diff)
downloadnextpnr-c3cb9aa3f6fb4039716132a23e29259496e43611.tar.gz
nextpnr-c3cb9aa3f6fb4039716132a23e29259496e43611.tar.bz2
nextpnr-c3cb9aa3f6fb4039716132a23e29259496e43611.zip
cyclonev: Add enough stubs that it links
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'cyclonev/family.cmake')
-rw-r--r--cyclonev/family.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/cyclonev/family.cmake b/cyclonev/family.cmake
index 9d1fb9bf..92ec7d12 100644
--- a/cyclonev/family.cmake
+++ b/cyclonev/family.cmake
@@ -1,5 +1,11 @@
set(MISTRAL_ROOT "" CACHE STRING "Mistral install path")
+aux_source_directory(${MISTRAL_ROOT}/lib MISTRAL_FILES)
+add_library(mistral STATIC ${MISTRAL_FILES})
+
+find_package(LibLZMA REQUIRED)
+
foreach(family_target ${family_targets})
- target_include_directories(${family_target} PRIVATE ${MISTRAL_ROOT}/lib)
+ target_include_directories(${family_target} PRIVATE ${MISTRAL_ROOT}/lib ${LIBLZMA_INCLUDE_DIRS})
+ target_link_libraries(${family_target} PRIVATE mistral ${LIBLZMA_LIBRARIES})
endforeach()