Skip to content
Snippets Groups Projects
Commit 00129fc9 authored by Lars Bilke's avatar Lars Bilke
Browse files

[CMake] Fix Python install on Windows.

parent cfbe594c
No related branches found
No related tags found
No related merge requests found
......@@ -214,10 +214,6 @@ option(OGS_COVERAGE "Enables code coverage measurements with gcov/lcov." OFF)
option(OGS_SYNC_SUBMODULES "Sync git submodules on CMake run. Overwrites custom URLs!" ON)
# Packaging
option(OGS_DOWNLOAD_ADDITIONAL_CONTENT "Should additional content such as manuals be downloaded and packaged?" OFF)
include(scripts/cmake/packaging/Pack.cmake)
# Third-party libraries, names come from Conan package names
set(OGS_LIBS VTK Boost Eigen3 Qt Shapelib libgeotiff CACHE INTERNAL "")
foreach(LIB ${OGS_LIBS})
......@@ -303,6 +299,9 @@ endif()
# Logging level
add_definitions(-DLOGOG_LEVEL=${OGS_LOG_LEVEL})
# Packaging
option(OGS_DOWNLOAD_ADDITIONAL_CONTENT "Should additional content such as manuals be downloaded and packaged?" OFF)
include(scripts/cmake/packaging/Pack.cmake)
######################
### Subdirectories ###
......
......@@ -123,9 +123,16 @@ if(OGS_USE_CONAN)
endif()
if(OGS_USE_PYTHON)
install(FILES ${Python_LIBRARIES} DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
if(WIN32)
file(GLOB PYTHON_RUNTIME_LIBS "${Python_RUNTIME_LIBRARY_DIRS}/*.dll")
message(STATUS "Install Python: ${PYTHON_RUNTIME_LIBS}")
install(FILES ${PYTHON_RUNTIME_LIBS} DESTINATION bin)
else()
install(FILES ${Python_LIBRARIES} DESTINATION bin)
endif()
endif()
configure_file(Documentation/README.txt.in ${PROJECT_BINARY_DIR}/README.txt)
install(FILES ${PROJECT_BINARY_DIR}/README.txt DESTINATION .)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment