Skip to content

Commit

Permalink
[clipper2] Add usage. Static-only for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ex-purple committed Jan 30, 2023
1 parent ed50fc5 commit 8a4dbd0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ports/clipper2/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO AngusJohnson/Clipper2
Expand Down
12 changes: 12 additions & 0 deletions ports/clipper2/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
The package clipper2 can be imported via CMake FindPkgConfig module:

# Clipper2
find_package(PkgConfig REQUIRED)
pkg_check_modules(Clipper2 REQUIRED IMPORTED_TARGET Clipper2)
target_link_libraries(main PkgConfig::Clipper2)

# Clipper2Z
find_package(PkgConfig REQUIRED)
pkg_check_modules(Clipper2Z REQUIRED IMPORTED_TARGET Clipper2Z)
target_link_libraries(main PkgConfig::Clipper2Z)

9 changes: 9 additions & 0 deletions versions/c-/clipper2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "e4e17a0f6cbecf7ac4863b830eb47df1e10d9b83",
"version": "1.1.1",
"port-version": 0
}
]
}

0 comments on commit 8a4dbd0

Please sign in to comment.