Pack python stub files into .msi installer

This commit is contained in:
Matthias Hochsteger 2019-09-10 12:31:31 +02:00
parent 728196472e
commit 58fa720e40

View File

@ -13,7 +13,7 @@ find_program(PYBIND11_STUBS NAMES pybind11-stubgen)
if(PYBIND11_STUBS)
message("-- Found pybind11-stubgen: ${PYBIND11_STUBS}")
install(CODE "execute_process(COMMAND ${PYBIND11_STUBS} --no-setup-py netgen)")
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/../stubs/netgen-stubs/ DESTINATION ${NG_INSTALL_DIR_PYTHON}/netgen/)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/../stubs/netgen-stubs/ DESTINATION ${NG_INSTALL_DIR_PYTHON}/netgen/ COMPONENT netgen)
else(PYBIND11_STUBS)
message(WARNING "pybind11-stubgen not found, if you want to create stub files
for better autocompletion support install it with pip.")