mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-01-01 09:51:24 +01:00
AARE_INSTALL_PYTHONEXT (#109)
- added AARE_INSTALL_PYTHONEXT option to install also python files in aare folder
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
find_package (Python 3.10 COMPONENTS Interpreter Development)
|
||||
find_package (Python 3.10 COMPONENTS Interpreter Development REQUIRED)
|
||||
|
||||
# Download or find pybind11 depending on configuration
|
||||
if(AARE_FETCH_PYBIND11)
|
||||
@@ -49,4 +49,11 @@ set_target_properties(_aare PROPERTIES
|
||||
configure_file(examples/play.py ${CMAKE_BINARY_DIR}/play.py)
|
||||
|
||||
|
||||
install(TARGETS _aare DESTINATION aare)
|
||||
if(AARE_INSTALL_PYTHONEXT)
|
||||
install(TARGETS _aare
|
||||
EXPORT "${TARGETS_EXPORT_NAME}"
|
||||
LIBRARY DESTINATION aare
|
||||
)
|
||||
|
||||
install(FILES ${PYTHON_FILES} DESTINATION aare)
|
||||
endif()
|
||||
Reference in New Issue
Block a user