Skip to content

Commit

Permalink
updating cmake install to include pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-dixon committed Aug 5, 2024
1 parent 1db327e commit 2d7b451
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions source/wrappers/python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
file( GLOB CYTHON_FILES pyuda/cpyuda/*.pyx )

install( FILES ${CYTHON_FILES} pyuda/cpyuda/uda.pxd DESTINATION python_installer/ukaea_pyuda_test/cpyuda )
install( FILES ${CYTHON_FILES} pyuda/cpyuda/uda.pxd DESTINATION python_installer/pyuda/cpyuda )

file( GLOB INSTALL_FILES pyuda/*.py )

install( FILES ${INSTALL_FILES} DESTINATION python_installer/ukaea_pyuda_test )
install( FILES ${INSTALL_FILES} DESTINATION python_installer/pyuda )

configure_file( ${CMAKE_CURRENT_LIST_DIR}/pyuda/_version.py.in ${CMAKE_CURRENT_BINARY_DIR}/pyuda/_version.py @ONLY )
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/pyuda/_version.py DESTINATION python_installer/ukaea_pyuda_test )
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/pyuda/_version.py DESTINATION python_installer/pyuda )

find_package( OpenSSL REQUIRED )
find_package( LibXml2 REQUIRED )
Expand Down Expand Up @@ -69,3 +69,5 @@ else()
endif()

install( FILES ${CMAKE_CURRENT_BINARY_DIR}/setup.py DESTINATION python_installer )
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/pyproject.toml DESTINATION python_installer )
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/README.md DESTINATION python_installer )

0 comments on commit 2d7b451

Please sign in to comment.