if(libpointmatcher_FOUND AND NOT TARGET CGAL::pointmatcher_support) find_package(Boost COMPONENTS thread filesystem system program_options date_time chrono) if(Boost_chrono_FOUND AND Boost_thread_FOUND AND Boost_filesystem_FOUND AND Boost_system_FOUND AND Boost_program_options_FOUND AND Boost_date_time_FOUND) add_library(CGAL::pointmatcher_support INTERFACE IMPORTED) target_compile_definitions(CGAL::pointmatcher_support INTERFACE "CGAL_LINKED_WITH_POINTMATCHER") target_include_directories(CGAL::pointmatcher_support INTERFACE "${libpointmatcher_INCLUDE_DIR}") target_link_libraries(CGAL::pointmatcher_support INTERFACE ${libpointmatcher_LIBRARIES}) else() message(STATUS "NOTICE: the libpointmatcher library requires the following boost components: thread filesystem system program_options date_time chrono.") endif() endif()