Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Jørgen Lien Sellæg
python-meetup-python-modules-modern-cpp
Commits
ab81a490
Commit
ab81a490
authored
Apr 26, 2019
by
Jørgen Lien Sellæg
Browse files
remove c-api from cmake file as it isn't build by it
parent
2620b231
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
13 deletions
+0
-13
.clang-format
.clang-format
+0
-0
CMakeLists.txt
CMakeLists.txt
+0
-13
No files found.
c-api/
.clang-format
→
.clang-format
View file @
ab81a490
File moved
CMakeLists.txt
View file @
ab81a490
...
...
@@ -7,19 +7,6 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -Wall -Wextra")
add_subdirectory
(
"lib/pybind11"
)
find_package
(
Python3 COMPONENTS Development
)
add_library
(
c-api SHARED c-api/module.cpp
)
set_target_properties
(
c-api
PROPERTIES
PREFIX
""
OUTPUT_NAME Maths.cpython-37m-x86_64-linux-gnu
)
target_include_directories
(
c-api PUBLIC
${
Python3_INCLUDE_DIRS
}
)
target_link_libraries
(
c-api
${
Python3_LIBRARIES
}
)
pybind11_add_module
(
"Prime"
pybind/heavy_example/module.cpp
)
pybind11_add_module
(
"CppMath"
pybind/sum_example/module.cpp
)
pybind11_add_module
(
"Cpp"
pybind/class_example/module.cpp
)
...
...
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