generated from cubao/cmake_example
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…ee/src/cpp_example/naive_svg.hpp (#1) * add headers * init code * fix * rename to naive-svg * fix * init code * update * update * init * not ready * faster build --------- Co-authored-by: TANG ZHIXIONG <[email protected]>
- Loading branch information
1 parent
862eee8
commit 3f73c8a
Showing
20 changed files
with
646 additions
and
334 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,16 +43,10 @@ jobs: | |
with: | ||
submodules: true | ||
|
||
- name: Set up QEMU | ||
if: runner.os == 'Linux' | ||
uses: docker/setup-qemu-action@v2 | ||
with: | ||
platforms: all | ||
|
||
- uses: pypa/[email protected] | ||
env: | ||
# CIBW_ARCHS: auto64 | ||
CIBW_ARCHS_LINUX: x86_64 aarch64 | ||
CIBW_ARCHS_LINUX: x86_64 | ||
CIBW_ARCHS_WINDOWS: AMD64 # ARM64 | ||
CIBW_ARCHS_MACOS: x86_64 arm64 | ||
CIBW_BEFORE_BUILD: pip install numpy fire --prefer-binary | ||
|
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 |
---|---|---|
@@ -1,10 +1,14 @@ | ||
cmake_minimum_required(VERSION 3.4...3.18) | ||
project(cubao_cmake_example) | ||
project(naive_svg) | ||
|
||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
include_directories(headers/include) | ||
|
||
add_subdirectory(pybind11) | ||
pybind11_add_module(pybind11_cubao_cmake_example src/main.cpp) | ||
file(GLOB SRCS src/*.cpp) | ||
pybind11_add_module(_naive_svg ${SRCS}) | ||
|
||
# EXAMPLE_VERSION_INFO is defined by setup.py and passed into the C++ code as a | ||
# define (VERSION_INFO) here. | ||
target_compile_definitions(pybind11_cubao_cmake_example | ||
target_compile_definitions(_naive_svg | ||
PRIVATE VERSION_INFO=${EXAMPLE_VERSION_INFO}) |
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
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,44 +1,3 @@ | ||
# code | ||
|
||
GitHub: [cmake-example](https://github.com/cubao/cmake_example) | ||
|
||
## CMakeLists.txt | ||
|
||
```cmake | ||
{% | ||
include-markdown "../CMakeLists.txt" | ||
comments=false | ||
%} | ||
``` | ||
|
||
## src/main.cpp | ||
|
||
```cpp | ||
{% | ||
include-markdown "../src/main.cpp" | ||
comments=false | ||
%} | ||
``` | ||
## setup.py | ||
<details> | ||
<summary>code</summary> | ||
```python | ||
{% | ||
include-markdown "../setup.py" | ||
comments=false | ||
%} | ||
``` | ||
|
||
</details> | ||
|
||
## tests/test_basic.py | ||
|
||
```cpp | ||
{% | ||
include-markdown "../tests/test_basic.py" | ||
comments=false | ||
%} | ||
``` | ||
GitHub: [cmake-example](https://github.com/cubao/pybind11-naive-svg) |
Oops, something went wrong.