[convectionkernels] Add port. (#25148)

* [cvtt] Add port.

* [cvtt] Modified to unofficial-cvtt

* Apply suggestions from code review

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>

* [cvtt] Renamed to convectionkernels

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
This commit is contained in:
Sylvain Doremus 2022-06-09 19:00:56 +02:00 committed by GitHub
parent 062f92c92e
commit 58196ee519
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1,30 @@
cmake_minimum_required(VERSION 3.3.0)
project( convectionkernels )
file(GLOB SRC_FILES *.cpp)
file(GLOB HDR_FILES *.h)
add_library( ${PROJECT_NAME}
STATIC
${HDR_FILES}
${SRC_FILES}
)
set_property( TARGET ${PROJECT_NAME}
PROPERTY PUBLIC_HEADER ${HDR_FILES}
)
target_include_directories( ${PROJECT_NAME}
PRIVATE ${CMAKE_CURRENT_LIST_DIR}
INTERFACE $<INSTALL_INTERFACE:include>
)
install( TARGETS ${PROJECT_NAME}
EXPORT unofficial-convectionkernels-config
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
PUBLIC_HEADER DESTINATION include/convectionkernels
)
install( EXPORT unofficial-convectionkernels-config
FILE unofficial-convectionkernels-config.cmake
NAMESPACE unofficial::convectionkernels::
DESTINATION share/unofficial-convectionkernels
)

View File

@ -0,0 +1,21 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO elasota/ConvectionKernels
REF dc2dbbe0ae2cf2be06ef56d1021e2222a56c7fe2
SHA512 2bf3aff1acb7b2365b882b4c1274ea8bcb9aea3015b5009e0ec50279122ecc623074d0f4fa04ddf8cd457e1f6868075a773bf8a2fa5b4fa9e2fd51d0a76d2560
HEAD_REF master
)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-convectionkernels)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

View File

@ -0,0 +1,17 @@
{
"name": "convectionkernels",
"version-date": "2022-06-08",
"description": "Fast, high-quality texture compression library for many formats, also known as cvtt",
"homepage": "https://github.com/elasota/ConvectionKernels",
"license": null,
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -1548,6 +1548,10 @@
"baseline": "4.1.0",
"port-version": 0
},
"convectionkernels": {
"baseline": "2022-06-08",
"port-version": 0
},
"coolprop": {
"baseline": "6.4.1",
"port-version": 1

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "cf21fe054d62c4602edd8566bb5d2f92b1bc1734",
"version-date": "2022-06-08",
"port-version": 0
}
]
}