mirror of https://github.com/microsoft/vcpkg.git
[vcpkg-ci-numactl] New ci port
This commit is contained in:
parent
7a9a0ff2cf
commit
401a6a38d0
|
|
@ -0,0 +1,9 @@
|
|||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
||||
|
||||
vcpkg_find_acquire_program(PKGCONFIG)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${CURRENT_PORT_DIR}/project"
|
||||
OPTIONS "-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
|
||||
)
|
||||
vcpkg_cmake_build()
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
project(vcpkg-ci-numactl)
|
||||
|
||||
find_package(unofficial-numa CONFIG REQUIRED)
|
||||
add_executable(vcpkg-ci-numactl main.cpp)
|
||||
target_link_libraries(vcpkg-ci-numactl PRIVATE unofficial::numa::numa)
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(numa IMPORTED_TARGET REQUIRED numa)
|
||||
add_executable(vcpkg-ci-numactl-pc main.cpp)
|
||||
target_link_libraries(vcpkg-ci-numactl-pc PRIVATE PkgConfig::numa)
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#include <numa.h>
|
||||
|
||||
int main() {
|
||||
if (numa_available() < 0) return 1;
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"name": "vcpkg-ci-numactl",
|
||||
"version-string": "ci",
|
||||
"description": "Validates numactl",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
"numactl"
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue