mirror of https://github.com/CGAL/cgal
GMPXX: Add CGAL_USE_GMPXX in header-only
This commit is contained in:
parent
1384d24b99
commit
7bb25993d6
|
|
@ -54,6 +54,11 @@ function(use_CGAL_GMP_support target)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_include_directories(${target} SYSTEM ${keyword} ${GMP_INCLUDE_DIR} ${GMPXX_INCLUDE_DIR} ${MPFR_INCLUDE_DIR})
|
target_include_directories(${target} SYSTEM ${keyword} ${GMP_INCLUDE_DIR} ${MPFR_INCLUDE_DIR})
|
||||||
target_link_libraries(${target} ${keyword} ${GMP_LIBRARIES} ${GMPXX_LIBRARIES} ${MPFR_LIBRARIES})
|
target_link_libraries(${target} ${keyword} ${GMP_LIBRARIES} ${MPFR_LIBRARIES})
|
||||||
|
if(WITH_GMPXX OR CGAL_WITH_GMPXX)
|
||||||
|
target_include_directories(${target} SYSTEM ${keyword} ${GMPXX_INCLUDE_DIR})
|
||||||
|
target_link_libraries(${target} ${keyword} ${GMPXX_LIBRARIES})
|
||||||
|
target_compile_definitions(${target} ${keyword} CGAL_USE_GMPXX=1)
|
||||||
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue