diff options
Diffstat (limited to 'vcpkg/ports/mtlt')
| -rw-r--r-- | vcpkg/ports/mtlt/portfile.cmake | 23 | ||||
| -rw-r--r-- | vcpkg/ports/mtlt/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/mtlt/vcpkg.json | 17 |
3 files changed, 44 insertions, 0 deletions
diff --git a/vcpkg/ports/mtlt/portfile.cmake b/vcpkg/ports/mtlt/portfile.cmake new file mode 100644 index 0000000..45dd7ac --- /dev/null +++ b/vcpkg/ports/mtlt/portfile.cmake @@ -0,0 +1,23 @@ +set(VCPKG_BUILD_TYPE release) # Header-only library + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO tonitaga/MTLT + REF 8e30e6636b06ad008082e22f37e0d79873142e1b + SHA512 2addaa4f84037a14431b20734fe5ca1ea11c4d9d1a0ddf82a16b9efaacbbac3873038bd16f93ba94288559585ae76d12884166931c91a214a3e3ed0cecea6b3b + HEAD_REF main +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME "mtlt" CONFIG_PATH "lib/cmake/mtlt") +vcpkg_fixup_pkgconfig() +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/mtlt/usage b/vcpkg/ports/mtlt/usage new file mode 100644 index 0000000..ea8d6e6 --- /dev/null +++ b/vcpkg/ports/mtlt/usage @@ -0,0 +1,4 @@ +The package mtlt provides CMake targets:
+
+ find_package(mtlt REQUIRED)
+ target_link_libraries(${PROJECT_NAME} PRIVATE mtlt::mtlt)
diff --git a/vcpkg/ports/mtlt/vcpkg.json b/vcpkg/ports/mtlt/vcpkg.json new file mode 100644 index 0000000..4f29fc3 --- /dev/null +++ b/vcpkg/ports/mtlt/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "mtlt", + "version": "1.0.0", + "description": "Tonitaga 2024. MTLT is a header-only math matrix library that allows you to do compile-time calculations, perform atomic operations, and contains all the basic operations on matrices. The library is written in STL style, supports joint work with STL algorithms. Since C++11", + "homepage": "https://github.com/tonitaga/MTLT", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |