File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
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 with miniaudio.h
4- # TODO @ngxson : move miniaudio.h and stb_image.h to mtmd-helper.cpp, then compile the helper as a separate library
5- add_library (mtmd_audio STATIC mtmd-audio.cpp mtmd-audio.h)
6- if (BUILD_SHARED_LIBS )
7- set_target_properties (mtmd_audio PROPERTIES POSITION_INDEPENDENT_CODE ON )
8- endif ()
9- target_link_libraries (mtmd_audio PRIVATE ggml ${CMAKE_THREAD_LIBS_INIT} )
10- target_compile_features (mtmd_audio PRIVATE cxx_std_17)
11- target_include_directories (mtmd_audio PRIVATE .)
12-
133add_library (mtmd OBJECT
144 mtmd.cpp
155 mtmd-audio.cpp
@@ -24,7 +14,7 @@ target_include_directories(mtmd PUBLIC .)
2414target_include_directories (mtmd PRIVATE ../..)
2515target_compile_features (mtmd PRIVATE cxx_std_17)
2616
27- # Helper library for mtmd , to avoid long compile times with miniaudio.h and stb_image.h
17+ # compile the helper separately , to avoid long compile times with miniaudio.h and stb_image.h
2818
2919add_library (mtmd_helper OBJECT
3020 mtmd-helper.cpp
You can’t perform that action at this time.
0 commit comments