File tree Expand file tree Collapse file tree 6 files changed +94449
-9647
lines changed Expand file tree Collapse file tree 6 files changed +94449
-9647
lines changed Original file line number Diff line number Diff line change 11# mtmd
22
3+ # compile mtmd-audio separately to avoid long compile times
4+ add_library (mtmd_audio STATIC mtmd-audio.cpp mtmd-audio.h)
5+ target_link_libraries (mtmd_audio PRIVATE ggml ${CMAKE_THREAD_LIBS_INIT} )
6+ target_compile_features (mtmd_audio PRIVATE cxx_std_17)
7+ target_include_directories (mtmd_audio PRIVATE .)
8+
39add_library (mtmd OBJECT
410 mtmd.cpp
511 mtmd-helper.cpp
@@ -9,7 +15,7 @@ add_library(mtmd OBJECT
915 clip-impl.h
1016 )
1117
12- target_link_libraries (mtmd PRIVATE ggml llama ${CMAKE_THREAD_LIBS_INIT} )
18+ target_link_libraries (mtmd PRIVATE ggml llama mtmd_audio ${CMAKE_THREAD_LIBS_INIT} )
1319
1420target_include_directories (mtmd PUBLIC .)
1521target_include_directories (mtmd PRIVATE ../..)
@@ -28,6 +34,7 @@ endif()
2834
2935if (NOT MSVC )
3036 target_compile_options (mtmd PRIVATE -Wno-cast-qual) # stb_image.h
37+ target_compile_options (mtmd_audio PRIVATE -Wno-cast-qual) # miniaudio.h
3138endif ()
3239
3340if (TARGET BUILD_INFO)
You can’t perform that action at this time.
0 commit comments