Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pybind11-test
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tammo Jan Dijkema
pybind11-test
Commits
21aff315
Commit
21aff315
authored
Apr 13, 2019
by
Tammo Jan Dijkema
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Makefile, binary
parent
c663d5d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
35 deletions
+0
-35
pybind11-cmake/Makefile
pybind11-cmake/Makefile
+0
-35
pybind11-cmake/fib_cli
pybind11-cmake/fib_cli
+0
-0
No files found.
pybind11-cmake/Makefile
deleted
100644 → 0
View file @
c663d5d5
all
:
libfibonacci.so fibmod fib_cli
fib_cli
:
apps/fib_cli.cpp libfibonacci.so
# compile fib_cli.cpp using the c++ compiler
# save to `fib_cli`
# link against the library `fibonacci`
# include the current directory in the directories searched for libraries
# include the current directory in the directories searched for headers
# compile the path where the library is to find into the binary
$(CXX)
apps/fib_cli.cpp
\
-o
fib_cli
\
-lfibonacci
\
-L
.
\
-Iinclude
\
-Wl
,-rpath .
libfibonacci.so
:
include/fibonacci.h src/fibonacci.cpp
# compile fibonacci.cpp into a shared library
# into libfibonacci.so
$(CXX)
src/fibonacci.cpp
\
-I
include
\
-o
libfibonacci.so
\
-Wl
,-rpath
.
\
--shared
fibmod
:
libfibonacci.so src/fibonacci_wrapper.cpp
# compile a python wrapper using pybind 11
$(CXX)
-O3
-Wall
-shared
-std
=
c++11
-undefined
dynamic_lookup
\
-Iinclude
-L
.
-lfibonacci
\
`
python3
-m
pybind11
--includes
`
\
src/fibonacci_wrapper.cpp
\
-o
fibmod
`
python3-config
--extension-suffix
`
clean
:
rm
-f
fib_cli libfibonacci.so fibmod.cpython
*
fib_cli
pybind11-cmake/fib_cli
deleted
100755 → 0
View file @
c663d5d5
File deleted
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment