diff options
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-orange-math')
4 files changed, 39 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-orange-math/portfile.cmake b/vcpkg/scripts/test_ports/vcpkg-ci-orange-math/portfile.cmake new file mode 100644 index 0000000..62422ca --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-orange-math/portfile.cmake @@ -0,0 +1,7 @@ +SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${CURRENT_PORT_DIR}/project"
+)
+
+vcpkg_cmake_build()
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-orange-math/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-orange-math/project/CMakeLists.txt new file mode 100644 index 0000000..d8007be --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-orange-math/project/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 3.26)
+
+project(vcpkg-ci-orange-math LANGUAGES CXX)
+
+set(CMAKE_CXX_STANDARD 23)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+
+add_executable(main main.cpp)
+
+find_package(omath CONFIG REQUIRED)
+target_link_libraries(main PRIVATE omath::omath)
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-orange-math/project/main.cpp b/vcpkg/scripts/test_ports/vcpkg-ci-orange-math/project/main.cpp new file mode 100644 index 0000000..ae7779f --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-orange-math/project/main.cpp @@ -0,0 +1,8 @@ +#include <omath/omath.hpp>
+
+int main()
+{
+ omath::Vector2 w = omath::Vector2(20.0, 30.0);
+ return 0;
+}
+
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-orange-math/vcpkg.json b/vcpkg/scripts/test_ports/vcpkg-ci-orange-math/vcpkg.json new file mode 100644 index 0000000..dcbdd38 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-orange-math/vcpkg.json @@ -0,0 +1,13 @@ +{
+ "name": "vcpkg-ci-orange-math",
+ "version-string": "ci",
+ "description": "Testing packages which provide orange-math",
+ "license": null,
+ "dependencies": [
+ "orange-math",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}
|