aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/lapack-test
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/scripts/test_ports/lapack-test')
-rw-r--r--vcpkg/scripts/test_ports/lapack-test/CMakeLists.txt6
-rw-r--r--vcpkg/scripts/test_ports/lapack-test/portfile.cmake5
-rw-r--r--vcpkg/scripts/test_ports/lapack-test/vcpkg.json19
3 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/lapack-test/CMakeLists.txt b/vcpkg/scripts/test_ports/lapack-test/CMakeLists.txt
new file mode 100644
index 0000000..1874911
--- /dev/null
+++ b/vcpkg/scripts/test_ports/lapack-test/CMakeLists.txt
@@ -0,0 +1,6 @@
+cmake_minimum_required(VERSION 3.17)
+
+project(Find_LAPACK_external)
+find_package(LAPACK REQUIRED)
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(LAPACK_PC REQUIRED IMPORTED_TARGET lapack)
diff --git a/vcpkg/scripts/test_ports/lapack-test/portfile.cmake b/vcpkg/scripts/test_ports/lapack-test/portfile.cmake
new file mode 100644
index 0000000..28b2faa
--- /dev/null
+++ b/vcpkg/scripts/test_ports/lapack-test/portfile.cmake
@@ -0,0 +1,5 @@
+SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+
+# Make sure LAPACK can be found
+vcpkg_cmake_configure(SOURCE_PATH "${CURRENT_PORT_DIR}"
+ OPTIONS -DVCPKG_HOST_TRIPLET=${HOST_TRIPLET})
diff --git a/vcpkg/scripts/test_ports/lapack-test/vcpkg.json b/vcpkg/scripts/test_ports/lapack-test/vcpkg.json
new file mode 100644
index 0000000..00c2832
--- /dev/null
+++ b/vcpkg/scripts/test_ports/lapack-test/vcpkg.json
@@ -0,0 +1,19 @@
+{
+ "$comment": "Keep the platform expressions in sync with the wrappers installed by the portfiles!",
+ "name": "lapack-test",
+ "version-date": "2022-02-22",
+ "description": "Metapackage for packages which provide LAPACK",
+ "license": null,
+ "dependencies": [
+ "lapack",
+ {
+ "name": "pkgconf",
+ "host": true,
+ "platform": "windows"
+ },
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}