CMake in setup #46
changliao1025
started this conversation in
Ideas
Replies: 1 comment
-
https://github.com/pybind/cmake_example/blob/master/setup.py |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
CMake and make will be called within setup.py
https://stackoverflow.com/questions/65800944/how-do-i-build-a-python-extension-module-with-cmake
add_custom_command(TARGET "${F2PY_TARGET_MODULE_NAME}" POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${CMAKE_CURRENT_BINARY_DIR}/${generated_module_file}" "${CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE}/${generated_module_file}")
Beta Was this translation helpful? Give feedback.
All reactions