blob: 9e4d21a6440c3a93d118e41a683923d287cf8b7d (
plain)
1
2
3
4
5
6
7
8
9
10
|
cmake_minimum_required(VERSION 3.19)
project(mingw-w64-cmake-toolchains NONE)
set(MINGW_TOOLCHAINS i686-w64-mingw32 x86_64-w64-mingw32)
include(GNUInstallDirs)
foreach(MINGW_TOOLCHAIN IN ITEMS ${MINGW_TOOLCHAINS})
configure_file(toolchain.cmake.in "${MINGW_TOOLCHAIN}.cmake" @ONLY)
install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/${MINGW_TOOLCHAIN}.cmake"
DESTINATION "${CMAKE_INSTALL_DATADIR}/cmake/toolchains")
endforeach()
|