Skip to content

Commit ce09ed4

Browse files
Kyrylocyrillicw
authored andcommitted
Improve FindScanbotSDK.cmake
1 parent 059fb0d commit ce09ed4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

examples/c/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,4 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
1313
set(SCANBOTSDK_DIR "${CMAKE_CURRENT_BINARY_DIR}/scanbotsdk")
1414
find_package(ScanbotSDK REQUIRED)
1515

16-
add_library(scanbotsdk SHARED IMPORTED)
17-
set_target_properties(scanbotsdk PROPERTIES
18-
IMPORTED_LOCATION "${ScanbotSDK_LIBS}"
19-
INTERFACE_INCLUDE_DIRECTORIES "${ScanbotSDK_INCLUDE_DIRS}"
20-
)
21-
2216
add_subdirectory(barcode)

examples/c/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ cmake -DSCANBOTSDK_VERSION=<SCANBOTSDK_VERSION> -DSCANBOTSDK_API_TOKEN=<SCANBOTS
4444
make
4545
```
4646

47-
Replace `SCANBOTSDK_VERSION` and `SCANBOTSDK_API_TOKEN` with the avlues you received from us.
47+
Replace `SCANBOTSDK_VERSION` and `SCANBOTSDK_API_TOKEN` with the values you received from us.
4848

4949
# Running the Examples
5050
See the `README.md` files in the individual example directories for instructions on how to run them.

examples/c/cmake/FindScanbotSDK.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,9 @@ find_path(ScanbotSDK_INCLUDE_DIRS
3939

4040
find_package_handle_standard_args(ScanbotSDK
4141
REQUIRED_VARS ScanbotSDK_LIBS ScanbotSDK_INCLUDE_DIRS)
42+
43+
add_library(scanbotsdk SHARED IMPORTED)
44+
set_target_properties(scanbotsdk PROPERTIES
45+
IMPORTED_LOCATION "${ScanbotSDK_LIBS}"
46+
INTERFACE_INCLUDE_DIRECTORIES "${ScanbotSDK_INCLUDE_DIRS}"
47+
)

0 commit comments

Comments
 (0)