updated README and added the pybind11

Signed-off-by: Peter Staar <taa@zurich.ibm.com>
This commit is contained in:
Peter Staar
2024-07-30 13:38:33 +02:00
parent 6559eb4eda
commit a8f4e8a761
2 changed files with 49 additions and 1 deletions
+20 -1
View File
@@ -1 +1,20 @@
# docling-parse
# docling-parse
## Install
To build the parse, simply run the following command in the root folder,
```sh
rm -rf build; cmake -B ./build; cd build; make
```
## Run
In the build-folder, run
```
./parse.exe <input-file>
```
If you dont have an input file, then a template input file will be printed on the terminal.
+29
View File
@@ -0,0 +1,29 @@
cmake_minimum_required(VERSION 3.5)
message(STATUS "entering in extlib_pybind11.cmake")
include(ExternalProject)
include(CMakeParseArguments)
set(PYBIND11_URL https://github.com/pybind/pybind11.git)
set(PYBIND11_TAG v2.10.0)
ExternalProject_Add(extlib_pybind11
PREFIX extlib_pybind11
GIT_REPOSITORY ${PYBIND11_URL}
GIT_TAG ${PYBIND11_TAG}
UPDATE_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
BUILD_ALWAYS OFF
INSTALL_DIR ${EXTERNALS_PREFIX_PATH}
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory <SOURCE_DIR>/include/ ${EXTERNALS_PREFIX_PATH}/include/
)
add_library(pybind11 INTERFACE)
add_custom_target(install_extlib_pybind11 DEPENDS extlib_pybind11)
add_dependencies(pybind11 install_extlib_pybind11)