File: CGAL_Boost_serialization_support.cmake

package info (click to toggle)
cgal 6.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 144,952 kB
  • sloc: cpp: 811,597; ansic: 208,576; sh: 493; python: 411; makefile: 286; javascript: 174
file content (12 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
if(Boost_SERIALIZATION_FOUND AND NOT TARGET CGAL::Boost_serialization_support)
  if(TARGET Boost::serialization)
    set(Boost_LIB Boost::serialization)
  else()
    set(Boost_LIB  ${Boost_SERIALIZATION_LIBRARY})
  endif()

  add_library(CGAL::Boost_serialization_support INTERFACE IMPORTED)
  set_target_properties(CGAL::Boost_serialization_support PROPERTIES
    INTERFACE_COMPILE_DEFINITIONS "CGAL_LINKED_WITH_BOOST_SERIALIZATION"
    INTERFACE_LINK_LIBRARIES ${Boost_LIB})
endif()