diff options
author | Dmitry Kurtaev <dmitry.kurtaev+github@gmail.com> | 2019-03-14 13:13:27 +0300 |
---|---|---|
committer | openvino-pushbot <44090433+openvino-pushbot@users.noreply.github.com> | 2019-03-14 13:13:27 +0300 |
commit | 669bee86e580cbbc8ef40b440ab195ba2cbf5142 (patch) | |
tree | fcf3c983043273c4e57ac33330efaa0a9e5643a2 | |
parent | 17e66dc5a6631d630da454506902bd7c25d4170b (diff) | |
download | dldt-669bee86e580cbbc8ef40b440ab195ba2cbf5142.tar.gz dldt-669bee86e580cbbc8ef40b440ab195ba2cbf5142.tar.bz2 dldt-669bee86e580cbbc8ef40b440ab195ba2cbf5142.zip |
Add a section of how to link IE with CMake project (#99)
-rw-r--r-- | inference-engine/README.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/inference-engine/README.md b/inference-engine/README.md index f0d6641be..d28782e60 100644 --- a/inference-engine/README.md +++ b/inference-engine/README.md @@ -28,6 +28,7 @@ The software was validated on: ### Build Steps 1. Clone submodules: ```sh + cd dldt/inference-engine git submodule init git submodule update --recursive ``` @@ -52,6 +53,24 @@ You can use the following additional build options: - To switch on/off the CPU and GPU plugins, use `cmake` options `-DENABLE_MKL_DNN=ON/OFF` and `-DENABLE_CLDNN=ON/OFF`. +5. Adding to your project + + For CMake projects, set an environment variable `InferenceEngine_DIR`: + + ```sh + export InferenceEngine_DIR=/path/to/dldt/inference-engine/build/ + ``` + + Then you can find Inference Engine by `find_package`: + + ```cmake + find_package(InferenceEngine) + + include_directories(${InferenceEngine_INCLUDE_DIRS}) + + target_link_libraries(${PROJECT_NAME} ${InferenceEngine_LIBRARIES} dl) + ``` + ## Build on Windows\* Systems: The software was validated on: |