1 # CMake file for crosscompiling Maxima/wxMaxima for Windows
2 # Copyright (C) by Wolfgang Dautermann
3 # License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
4 # This is free software: you are free to change and redistribute it.
5 # There is NO WARRANTY, to the extent permitted by law.
7 # If you want to use a updated version of a program,
8 # update the version number and the checksum.
9 # If no further patches are needed, you should get a
10 # updated setup-file automatically.
14 set(VTK_MD5 "f75e6f49c167c464192fbc8ef473954a")
15 set(VTK_INSTALLERNAME "vtkpython-7.1.1-Windows-64bit.exe")
16 set(VTK_URL "http://www.vtk.org/files/release/7.1/${VTK_INSTALLERNAME}")
18 set(VTK_MD5 "8d8b0878be81a0ab471e929f828dfe9a")
19 set(VTK_INSTALLERNAME "vtkpython-6.3.0-Windows-32bit.exe")
20 set(VTK_URL "http://www.vtk.org/files/release/6.3/${VTK_INSTALLERNAME}")
25 externalproject_add(vtk
27 DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads
34 # older versions of 7z extract the contents of the VTK installer
35 # into the directory "$_OUTDIR/bin/" newer into "bin/". Don't know why.
36 # To make this uniform, test if the directory "${CMAKE_BINARY_DIR}/vtk/\$_OUTDIR/bin/"
37 # exists, and rename the directory.
38 ExternalProject_Add_Step(vtk extract
39 COMMENT "Performing extraction step for 'VTK'"
40 COMMAND mkdir -p "${CMAKE_BINARY_DIR}/vtk" && cd "${CMAKE_BINARY_DIR}/vtk" && ${SEVENZIP_EXE} x -y "${CMAKE_SOURCE_DIR}/downloads/${VTK_INSTALLERNAME}" && test -d "${CMAKE_BINARY_DIR}/vtk/\$_OUTDIR/bin/" && mv "${CMAKE_BINARY_DIR}/vtk/\$_OUTDIR/bin/" "${CMAKE_BINARY_DIR}/vtk/bin/" || exit 0
45 install(DIRECTORY "${CMAKE_BINARY_DIR}/vtk/bin/" DESTINATION vtk/ COMPONENT VTK)