diff --git a/README.md b/README.md index a00f9da..2bbe440 100644 --- a/README.md +++ b/README.md @@ -1 +1,20 @@ -# docling-parse \ No newline at end of file +# 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 +``` + +If you dont have an input file, then a template input file will be printed on the terminal. + diff --git a/cmake/extlib_pybind11.cmake b/cmake/extlib_pybind11.cmake new file mode 100644 index 0000000..409b4f9 --- /dev/null +++ b/cmake/extlib_pybind11.cmake @@ -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 /include/ ${EXTERNALS_PREFIX_PATH}/include/ + ) + +add_library(pybind11 INTERFACE) +add_custom_target(install_extlib_pybind11 DEPENDS extlib_pybind11) +add_dependencies(pybind11 install_extlib_pybind11) \ No newline at end of file