diff --git a/ggml/CMakeLists.txt b/ggml/CMakeLists.txt index 1b425ede..6fd942a4 100644 --- a/ggml/CMakeLists.txt +++ b/ggml/CMakeLists.txt @@ -237,7 +237,9 @@ set(GGML_PUBLIC_HEADERS include/ggml-rpc.h include/ggml-sycl.h include/ggml-vulkan.h - include/ggml-bitnet.h) + # include/ggml-bitnet.h) + ../../../include/ggml-bitnet.h) # works from rust, because out dir != bitnet dir + # ../../../../include/ggml-bitnet.h) # from bitnet set_target_properties(ggml PROPERTIES PUBLIC_HEADER "${GGML_PUBLIC_HEADERS}") #if (GGML_METAL) diff --git a/CMakeLists.txt b/CMakeLists.txt index 157d9c86..0d33490f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,6 +135,7 @@ set(LLAMA_INSTALL_VERSION 0.0.${BUILD_NUMBER}) set(LLAMA_INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR} CACHE PATH "Location of header files") set(LLAMA_LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR} CACHE PATH "Location of library files") set(LLAMA_BIN_INSTALL_DIR ${CMAKE_INSTALL_BINDIR} CACHE PATH "Location of binary files") +option(LLAMA_BUILD_EXAMPLES "llama: build examples" ${LLAMA_STANDALONE}) # At the moment some compile definitions are placed within the ggml/src @@ -198,4 +199,8 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/llama.pc" # add_subdirectory(common) -add_subdirectory(examples) + +if (LLAMA_BUILD_EXAMPLES) + add_subdirectory(examples) + add_subdirectory(pocs) +endif()