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 @@ -241,6 +241,16 @@ if (LLAMA_BUILD_COMMON)
241
241
242
242
endif ()
243
243
244
+ if (LLAMA_BUILD_TOOLS )
245
+
246
+ install (
247
+ TARGETS mtmd
248
+ EXPORT llama-targets
249
+ PUBLIC_HEADER
250
+ DESTINATION ${LLAMA_INCLUDE_INSTALL_DIR} /mtmd )
251
+
252
+ endif ()
253
+
244
254
install (
245
255
EXPORT llama-targets
246
256
FILE llama-targets.cmake
Original file line number Diff line number Diff line change @@ -15,7 +15,12 @@ add_library(mtmd
15
15
16
16
target_link_libraries (mtmd PUBLIC ggml llama )
17
17
target_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
+ )
19
24
target_include_directories (mtmd PRIVATE ../.. )
20
25
target_include_directories (mtmd PRIVATE ../../vendor )
21
26
target_compile_features (mtmd PRIVATE cxx_std_17 )
@@ -35,8 +40,6 @@ set_target_properties(mtmd
35
40
PROPERTIES
36
41
PUBLIC_HEADER "${MTMD_PUBLIC_HEADERS} " )
37
42
38
- install (TARGETS mtmd LIBRARY PUBLIC_HEADER )
39
-
40
43
if (NOT MSVC )
41
44
# for stb_image.h and miniaudio.h
42
45
target_compile_options (mtmd PRIVATE -Wno-cast-qual )
You can’t perform that action at this time.
0 commit comments