| # Python CMakeLists.txt | |
| cmake_minimum_required(VERSION 3.18) | |
| # Python package configuration | |
| find_package(Python3 COMPONENTS Interpreter Development) | |
| if(Python3_FOUND) | |
| message(STATUS "Found Python: ${Python3_VERSION}") | |
| # Install Python package | |
| install(DIRECTORY ${CMAKE_SOURCE_DIR}/python/docking_at_home | |
| DESTINATION ${Python3_SITELIB} | |
| ) | |
| # Install scripts | |
| install(PROGRAMS ${CMAKE_SOURCE_DIR}/python/docking_at_home/cli.py | |
| DESTINATION bin | |
| RENAME docking-at-home | |
| ) | |
| else() | |
| message(WARNING "Python3 not found. Python package will not be installed.") | |
| endif() | |