aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/bw-sqlitemap
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/bw-sqlitemap')
-rw-r--r--vcpkg/ports/bw-sqlitemap/portfile.cmake23
-rw-r--r--vcpkg/ports/bw-sqlitemap/usage9
-rw-r--r--vcpkg/ports/bw-sqlitemap/vcpkg.json14
3 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/bw-sqlitemap/portfile.cmake b/vcpkg/ports/bw-sqlitemap/portfile.cmake
new file mode 100644
index 0000000..cf7079f
--- /dev/null
+++ b/vcpkg/ports/bw-sqlitemap/portfile.cmake
@@ -0,0 +1,23 @@
+set(VCPKG_BUILD_TYPE release) # header-only
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO bw-hro/sqlitemap
+ REF "v${VERSION}"
+ SHA512 72e5dc25d82d440d0da17a5f464750320626b19a39536c268b3591b3f9a0631b2a2bbd6ecc5c242cd69ff9895c49e69ad20f273313a78f837d6e8bb55942217c
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DSM_BUILD_EXAMPLES=OFF
+ -DSM_BUILD_TESTS=OFF
+ -DSM_ENABLE_COVERAGE=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
+
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/vcpkg/ports/bw-sqlitemap/usage b/vcpkg/ports/bw-sqlitemap/usage
new file mode 100644
index 0000000..5acc615
--- /dev/null
+++ b/vcpkg/ports/bw-sqlitemap/usage
@@ -0,0 +1,9 @@
+sqlitemap is header-only and can be used from CMake via:
+
+ find_path(SQLITEMAP_INCLUDE_DIRS "bw/sqlitemap/sqlitemap.hpp")
+ target_include_directories(main PRIVATE ${SQLITEMAP_INCLUDE_DIRS})
+
+However it requires
+
+ find_package(unofficial-sqlite3 CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE unofficial::sqlite3::sqlite3)
diff --git a/vcpkg/ports/bw-sqlitemap/vcpkg.json b/vcpkg/ports/bw-sqlitemap/vcpkg.json
new file mode 100644
index 0000000..547b4cc
--- /dev/null
+++ b/vcpkg/ports/bw-sqlitemap/vcpkg.json
@@ -0,0 +1,14 @@
+{
+ "name": "bw-sqlitemap",
+ "version": "1.1.0",
+ "description": "sqlitemap — Persistent Map Backed by SQLite",
+ "homepage": "https://github.com/bw-hro/sqlitemap",
+ "license": "MIT",
+ "dependencies": [
+ "sqlite3",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}