1 # CMake file for crosscompiling Maxima/wxMaxima for Windows
2 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Copyright (C) by Wolfgang Dautermann
4 # License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
5 # This is free software: you are free to change and redistribute it.
6 # There is NO WARRANTY, to the extent permitted by law.
8 # If you want to use a updated version of a program,
9 # update the version number and the checksum.
10 # If no further patches are needed, you should get a
11 # updated setup-file automatically.
14 set(SBCLVERSION "2.4.7")
15 set(SBCL_MD5 "2875cd24a59309ef4dc307eaa5c81eb6")
16 set(SBCL_INSTALLERNAME "sbcl-${SBCLVERSION}-x86-64-windows-binary.msi")
18 set(SBCLVERSION "2.3.2")
19 set(SBCL_MD5 "d909b01d9f520df639dbd49709735ee6")
20 set(SBCL_INSTALLERNAME "sbcl-${SBCLVERSION}-x86-windows-binary.msi")
23 set(SBCL_URL "https://prdownloads.sourceforge.net/sbcl/${SBCL_INSTALLERNAME}")
25 externalproject_add(sbcl
27 DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads
31 BUILD_COMMAND cd ${CMAKE_BINARY_DIR}/sbcl && ${CMAKE_SOURCE_DIR}/sbcl.sh
35 ExternalProject_Add_Step(sbcl extract
36 COMMENT "Performing extraction step for 'SBCL'"
37 COMMAND mkdir -p ${CMAKE_BINARY_DIR}/sbcl && cd ${CMAKE_BINARY_DIR}/sbcl && ${SEVENZIP_EXE} x -y ${CMAKE_SOURCE_DIR}/downloads/${SBCL_INSTALLERNAME}
42 install(FILES ${CMAKE_BINARY_DIR}/sbcl/sbcl.exe ${CMAKE_BINARY_DIR}/sbcl/sbcl.core DESTINATION bin COMPONENT SBCL)
43 install(DIRECTORY ${CMAKE_BINARY_DIR}/sbcl/contrib DESTINATION bin COMPONENT SBCL)