2021-06-22 20:37:26 +00:00
|
|
|
# Подключение внешних проектов
|
|
|
|
include(ExternalProject)
|
|
|
|
|
|
|
|
if(MPFR_FOUND)
|
|
|
|
ExternalProject_Add(
|
|
|
|
mpfrcpp
|
|
|
|
SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/mpreal
|
|
|
|
INSTALL_DIR ${CMAKE_BINARY_DIR}/include
|
2021-07-03 06:43:29 +00:00
|
|
|
CONFIGURE_COMMAND true
|
2021-06-22 20:37:26 +00:00
|
|
|
BUILD_COMMAND true
|
2021-07-06 01:02:25 +00:00
|
|
|
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/mpreal.h <INSTALL_DIR>)
|
2021-06-22 20:37:26 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
set(MPFRCPP_PREFIX ${CMAKE_BINARY_DIR} CACHE FILEPATH "" FORCE)
|
|
|
|
set(MPFRCPP_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR} CACHE PATH "" FORCE)
|