Compare commits
2 Commits
306cfff07a
...
aa9e44b01f
Author | SHA1 | Date | |
---|---|---|---|
aa9e44b01f | |||
495c7f36ff |
16
FindMPFRCppThirdparty.cmake
Normal file
16
FindMPFRCppThirdparty.cmake
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Подключение внешних проектов
|
||||||
|
include(ExternalProject)
|
||||||
|
|
||||||
|
if(MPFR_FOUND)
|
||||||
|
ExternalProject_Add(
|
||||||
|
mpfrcpp
|
||||||
|
SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/mpreal
|
||||||
|
INSTALL_DIR ${CMAKE_BINARY_DIR}/include
|
||||||
|
DOWNLOAD_COMMAND ""
|
||||||
|
CONFIGURE_COMMAND ""
|
||||||
|
BUILD_COMMAND true
|
||||||
|
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/mpreal.h <INSTALL_DIR>)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(MPFRCPP_PREFIX ${CMAKE_BINARY_DIR} CACHE FILEPATH "" FORCE)
|
||||||
|
set(MPFRCPP_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR} CACHE PATH "" FORCE)
|
@ -1,3 +1,6 @@
|
|||||||
|
# Подключение внешних проектов
|
||||||
|
include(ExternalProject)
|
||||||
|
|
||||||
ExternalProject_Add(
|
ExternalProject_Add(
|
||||||
myxlib
|
myxlib
|
||||||
SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/myxlib
|
SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/myxlib
|
||||||
|
Loading…
Reference in New Issue
Block a user