mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			No EOL
		
	
	
		
			1.1 KiB
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			No EOL
		
	
	
		
			1.1 KiB
		
	
	
	
		
			CMake
		
	
	
	
	
	
| set(_srcdir ${CMAKE_CURRENT_LIST_DIR}/mpfr)
 | |
| set(_dstdir ${DESTDIR}/usr/local)
 | |
| 
 | |
| if (MSVC)
 | |
|     set(_output  ${_dstdir}/include/mpfr.h
 | |
|                  ${_dstdir}/include/mpf2mpfr.h
 | |
|                  ${_dstdir}/lib/libmpfr-4.lib 
 | |
|                  ${_dstdir}/bin/libmpfr-4.dll)
 | |
| 
 | |
|     add_custom_command(
 | |
|         OUTPUT  ${_output}
 | |
|         COMMAND ${CMAKE_COMMAND} -E copy ${_srcdir}/include/mpfr.h ${_dstdir}/include/
 | |
|         COMMAND ${CMAKE_COMMAND} -E copy ${_srcdir}/include/mpf2mpfr.h ${_dstdir}/include/
 | |
|         COMMAND ${CMAKE_COMMAND} -E copy ${_srcdir}/lib/win${DEPS_BITS}/libmpfr-4.lib ${_dstdir}/lib/
 | |
|         COMMAND ${CMAKE_COMMAND} -E copy ${_srcdir}/lib/win${DEPS_BITS}/libmpfr-4.dll ${_dstdir}/bin/
 | |
|     )
 | |
| 
 | |
|     add_custom_target(dep_MPFR SOURCES ${_output})
 | |
| 
 | |
| else ()
 | |
|     ExternalProject_Add(dep_MPFR
 | |
|         URL https://www.mpfr.org/mpfr-3.1.6/mpfr-3.1.6.tar.bz2
 | |
|         BUILD_IN_SOURCE ON
 | |
|         CONFIGURE_COMMAND ./configure --prefix=${DESTDIR}/usr/local --with-gmp=${DESTDIR}/usr/local --with-pic
 | |
|         BUILD_COMMAND make -j
 | |
|         INSTALL_COMMAND make install
 | |
|         DEPENDS dep_GMP
 | |
|     )
 | |
| endif () | 
