2019-09-27 17:05:33 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2020-05-04 11:30:17 +08:00
|
|
|
index 577b61ed2..7c6dd8ac4 100644
|
2019-09-27 17:05:33 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2020-05-04 11:30:17 +08:00
|
|
|
@@ -432,7 +432,7 @@ install(FILES
|
2019-09-27 17:05:33 +08:00
|
|
|
DESTINATION include)
|
|
|
|
|
|
|
|
install(DIRECTORY tutorial
|
|
|
|
- DESTINATION .
|
|
|
|
+ DESTINATION share/halide
|
|
|
|
FILES_MATCHING
|
|
|
|
PATTERN "*.cpp"
|
|
|
|
PATTERN "*.h"
|
2020-05-04 11:30:17 +08:00
|
|
|
@@ -463,10 +463,10 @@ install(FILES
|
|
|
|
README.md
|
|
|
|
README_rungen.md
|
|
|
|
README_webassembly.md
|
2019-09-27 17:05:33 +08:00
|
|
|
- DESTINATION .)
|
|
|
|
+ DESTINATION share/halide)
|
|
|
|
|
|
|
|
# ---- halide.cmake
|
2020-05-04 11:30:17 +08:00
|
|
|
-install(FILES halide.cmake DESTINATION .)
|
|
|
|
+install(FILES halide.cmake DESTINATION share/halide)
|
2019-09-27 17:05:33 +08:00
|
|
|
|
|
|
|
# ---- halide_config
|
2020-05-04 11:30:17 +08:00
|
|
|
file(GLOB FILES "${Halide_SOURCE_DIR}/tools/halide_config.*.tpl")
|
|
|
|
@@ -475,7 +475,7 @@ foreach(F ${FILES})
|
2019-09-27 17:05:33 +08:00
|
|
|
string(REGEX REPLACE "\\.tpl$" "" FNAME "${FNAME}") # Strip .tpl extension
|
|
|
|
configure_file("${F}" "${CMAKE_BINARY_DIR}/${FNAME}" @ONLY)
|
|
|
|
install(FILES "${CMAKE_BINARY_DIR}/${FNAME}"
|
|
|
|
- DESTINATION .)
|
|
|
|
+ DESTINATION share/halide)
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
add_custom_target(distrib
|