mirror of
https://github.com/blender/blender
synced 2026-10-25 03:07:01 +03:00
Besides being more consistent with the minimum version we use, this also fixes warnings when using CMake 4.0. Pull Request: https://projects.blender.org/blender/blender/pulls/142497
22 lines
449 B
Text
22 lines
449 B
Text
cmake_minimum_required(VERSION 3.10)
|
|
project(libgmpxx)
|
|
|
|
include_directories(. cxx ${GMP_INCLUDE_DIR})
|
|
add_definitions(-D__GMP_WITHIN_GMPXX)
|
|
add_library(libgmpxx SHARED
|
|
cxx/dummy.cc
|
|
cxx/isfuns.cc
|
|
cxx/ismpf.cc
|
|
cxx/ismpq.cc
|
|
cxx/ismpz.cc
|
|
cxx/ismpznw.cc
|
|
cxx/limits.cc
|
|
cxx/osdoprnti.cc
|
|
cxx/osfuns.cc
|
|
cxx/osmpf.cc
|
|
cxx/osmpq.cc
|
|
cxx/osmpz.cc
|
|
)
|
|
|
|
target_link_libraries(libgmpxx ${GMP_LIBRARY})
|
|
install(TARGETS libgmpxx DESTINATION lib)
|