mirror of
https://github.com/docling-project/docling-parse.git
synced 2026-05-17 13:10:49 +00:00
updated README and added the pybind11
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user