I am writing Python binding for bark.cpp and due to the specific add_library(${ENCODEC_LIB} STATIC encodec.cpp encodec.h), I could not use a high-level CmakeLists.txt to build the .so file for encodec.cpp. We should add option to build share library:
option(BUILD_SHARED_LIBS "build shared libraries" OFF) add_library(${ENCODEC_LIB} encodec.cpp encodec.h)
This should be applied on the bark.cpp as well