vcpkg/ports/sqlite3/portfile.cmake

20 lines
724 B
CMake
Raw Normal View History

2016-09-18 20:50:08 -07:00
include(vcpkg_common_functions)
set(SOURCE_PATH ${CMAKE_CURRENT_LIST_DIR})
2016-09-18 20:50:08 -07:00
vcpkg_download_distfile(ARCHIVE
URLS "https://sqlite.org/2016/sqlite-amalgamation-3150000.zip"
FILENAME "sqlite-amalgamation-3150000.zip"
SHA512 82fea23b2158c448cbe2b80121eb32652df49eb85357edbaeef0c343ef478433706ebc4cd8add1985763db223d9268d0f7e74fc8db59353c15267cbc3d2078a8
2016-09-18 20:50:08 -07:00
)
vcpkg_extract_source_archive(${ARCHIVE})
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
2016-09-18 20:50:08 -07:00
OPTIONS
-DSOURCE=${CURRENT_BUILDTREES_DIR}/src/sqlite-amalgamation-3150000
2016-09-18 20:50:08 -07:00
)
vcpkg_install_cmake()
file(WRITE ${CURRENT_PACKAGES_DIR}/share/sqlite3/copyright "SQLite is in the Public Domain.\nhttp://www.sqlite.org/copyright.html\n")
vcpkg_copy_pdbs()