File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -243,6 +243,16 @@ if (LLAMA_BUILD_COMMON)
243243
244244endif ()
245245
246+ if (LLAMA_BUILD_TOOLS)
247+
248+ install (
249+ TARGETS mtmd
250+ EXPORT llama-targets
251+ PUBLIC_HEADER
252+ DESTINATION ${LLAMA_INCLUDE_INSTALL_DIR} /mtmd)
253+
254+ endif ()
255+
246256install (
247257 EXPORT llama-targets
248258 FILE llama-targets.cmake
Original file line number Diff line number Diff line change @@ -15,7 +15,12 @@ add_library(mtmd
1515
1616target_link_libraries (mtmd PUBLIC ggml llama)
1717target_link_libraries (mtmd PRIVATE Threads::Threads)
18- target_include_directories (mtmd PUBLIC .)
18+ target_include_directories (
19+ mtmd
20+ PUBLIC
21+ $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR} >
22+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} >
23+ )
1924target_include_directories (mtmd PRIVATE ../..)
2025target_include_directories (mtmd PRIVATE ../../vendor)
2126target_compile_features (mtmd PRIVATE cxx_std_17)
@@ -35,8 +40,6 @@ set_target_properties(mtmd
3540 PROPERTIES
3641 PUBLIC_HEADER "${MTMD_PUBLIC_HEADERS} " )
3742
38- install (TARGETS mtmd LIBRARY PUBLIC_HEADER )
39-
4043if (NOT MSVC )
4144 # for stb_image.h and miniaudio.h
4245 target_compile_options (mtmd PRIVATE -Wno-cast-qual)
You can’t perform that action at this time.
0 commit comments