Skip to content

Commit 2b744a6

Browse files
committed
Merge branch 'development' of https://github.com/Behemyth/CPPython into development
2 parents 38b2da3 + 4642939 commit 2b744a6

File tree

5 files changed

+34
-1
lines changed

5 files changed

+34
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
cmake_minimum_required(VERSION 3.10)
2+
3+
project(HelloWorld)
4+
5+
find_package(fmt CONFIG REQUIRED)
6+
7+
add_executable(HelloWorld helloworld.cpp)
8+
9+
target_link_libraries(HelloWorld PRIVATE fmt::fmt)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": 2,
3+
"configurePresets": [
4+
{
5+
"name": "vcpkg",
6+
"generator": "Ninja",
7+
"binaryDir": "${sourceDir}/build",
8+
"cacheVariables": {
9+
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
10+
}
11+
}
12+
]
13+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <fmt/core.h>
2+
3+
int main()
4+
{
5+
fmt::print("Hello World!\n");
6+
return 0;
7+
}

examples/vcpkg_cmake/simple/pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ provider-name = "vcpkg"
2121

2222
install-path = "install"
2323

24+
dependencies = [
25+
"fmt>=11.1.0",
26+
]
27+
2428
[tool.cppython.generator]
2529

2630
[tool.cppython.provider]

tests/integration/examples/test_vcpkg_cmake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_simple(example_runner: CliRunner) -> None:
1616
result = example_runner.invoke(
1717
app,
1818
[
19-
'update',
19+
'install',
2020
],
2121
)
2222

0 commit comments

Comments
 (0)