-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I tried copying the patterns I saw in the `vcpkg-ci-blas` folder, but I have no idea how to actually run the tests.
- Loading branch information
Showing
5 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cmake_minimum_required(VERSION 3.29) | ||
|
||
project(vcpkg-ci-aurora-au LANGUAGES CXX) | ||
|
||
find_package(Au CONFIG REQUIRED) | ||
|
||
add_executable(test_au_client test_au_client.cc) | ||
target_link_libraries(test_au_client PRIVATE Au::au) | ||
target_compile_features(test_au_client PRIVATE cxx_std_14) |
17 changes: 17 additions & 0 deletions
17
scripts/test_ports/vcpkg-ci-aurora-au/project/test_au_client.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <iostream> | ||
|
||
#include "au/au.hh" | ||
#include "au/constants/speed_of_light.hh" | ||
#include "au/io.hh" | ||
#include "au/units/meters.hh" | ||
#include "au/units/seconds.hh" | ||
|
||
using ::au::SPEED_OF_LIGHT; | ||
using ::au::symbols::m; | ||
using ::au::symbols::s; | ||
|
||
int main(int argc, char **argv) { | ||
std::cout << "Speed of light in m/s: " << SPEED_OF_LIGHT.as<int>(m / s) | ||
<< std::endl; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "vcpkg-ci-aurora-au", | ||
"version-string": "ci", | ||
"description": "Validates aurora-au", | ||
"dependencies": [ | ||
"aurora-au", | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
} | ||
] | ||
} |