File: CGAL_UseMPFI.cmake

package info (click to toggle)
cgal 3.6.1-2
  • links: PTS
  • area: non-free
  • in suites: squeeze
  • size: 62,184 kB
  • ctags: 95,782
  • sloc: cpp: 453,758; ansic: 96,821; sh: 226; makefile: 120; xml: 2
file content (24 lines) | stat: -rw-r--r-- 695 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This module setups the compiler for the MPFI library.
# It assumes that find_package(MPFI) was already called.

if( NOT CGAL_MPFI_SETUP )

  if( MPFI_FOUND )

    message( STATUS "MPFI include:      ${MPFI_INCLUDE_DIR}" )
    message( STATUS "MPFI libraries:    ${MPFI_LIBRARIES}" )
    message( STATUS "MPFI definitions:  ${MPFI_DEFINITIONS}" )

    include_directories( ${MPFI_INCLUDE_DIR} )
    link_directories( ${MPFI_LIBRARIES_DIR} )
    add_definitions( ${MPFI_DEFINITIONS} "-DCGAL_USE_MPFI" )

    if( NOT MSVC )
      link_libraries( ${MPFI_LIBRARIES} )
    endif( NOT MSVC )

  endif( MPFI_FOUND )

  set( CGAL_MPFI_SETUP TRUE )

endif( NOT CGAL_MPFI_SETUP )