Skip to content

Commit edcdb38

Browse files
committed
Making libfst a proper gitsubmodule
1 parent 4e253a7 commit edcdb38

File tree

14 files changed

+19
-9673
lines changed

14 files changed

+19
-9673
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@
88
[submodule "external/slang"]
99
path = external/slang
1010
url = https://github.com/MikePopoloski/slang.git
11+
[submodule "external/libfst"]
12+
path = external/libfst
13+
url = https://github.com/gtkwave/libfst.git

external/CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,13 @@ add_subdirectory(abseil-cpp EXCLUDE_FROM_ALL)
2222
add_subdirectory(googletest EXCLUDE_FROM_ALL)
2323
include(GoogleTest)
2424
add_subdirectory(slang EXCLUDE_FROM_ALL)
25-
add_subdirectory(fst)
25+
26+
# libfst doesn't have its own CMakeLists.txt, so just define the libraries for it here.
27+
find_package(ZLIB REQUIRED)
28+
add_library(libfst
29+
libfst/src/fstapi.c
30+
libfst/src/fastlz.c
31+
libfst/src/lz4.c
32+
)
33+
target_link_libraries(libfst PRIVATE z)
34+
target_include_directories(libfst PRIVATE libfst/src)

external/fst/CMakeLists.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)