aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/oatpp-postgresql/portfile.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/oatpp-postgresql/portfile.cmake')
-rw-r--r--vcpkg/ports/oatpp-postgresql/portfile.cmake24
1 files changed, 24 insertions, 0 deletions
diff --git a/vcpkg/ports/oatpp-postgresql/portfile.cmake b/vcpkg/ports/oatpp-postgresql/portfile.cmake
new file mode 100644
index 0000000..c798d5f
--- /dev/null
+++ b/vcpkg/ports/oatpp-postgresql/portfile.cmake
@@ -0,0 +1,24 @@
+set(OATPP_VERSION "1.3.0")
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO oatpp/oatpp-postgresql
+ REF ${OATPP_VERSION}
+ SHA512 6926194ae7d77db2a071fcb805ce048954908cf18d59f3095e1bf779748d9e5b9ceb657d97b1fc8a6ebfcf71936b211e2b10e68a62983e847c68ab58e1f3f2ba
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-postgresql CONFIG_PATH lib/cmake/oatpp-postgresql-${OATPP_VERSION})
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)