Skip to content

Commit

Permalink
use copy directly for python package
Browse files Browse the repository at this point in the history
  • Loading branch information
DE0CH committed Oct 13, 2022
1 parent c066b25 commit eeb1c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ endif(DOXYGEN_FOUND)

if(PYTHONINTERP_FOUND AND SWIG_FOUND)
file(COPY ${PROJECT_SOURCE_DIR}/pyrfr DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(RENAME ${CMAKE_CURRENT_BINARY_DIR}/pyrfr ${CMAKE_CURRENT_BINARY_DIR}/python_package)
file(COPY ${CMAKE_CURRENT_BINARY_DIR}/pyrfr DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/python_package)

configure_file(${PROJECT_SOURCE_DIR}/pyrfr/setup.py ${CMAKE_CURRENT_BINARY_DIR}/python_package/setup.py)
configure_file(${PROJECT_SOURCE_DIR}/pyrfr/pyrfr/__init__.py ${CMAKE_CURRENT_BINARY_DIR}/python_package/pyrfr/__init__.py)
Expand Down

0 comments on commit eeb1c74

Please sign in to comment.