#/*============================================================================
#
#  SKSURGERYPCLCPP: Image-guided surgery functions, in C++, using PCL.
#
#  Copyright (c) University College London (UCL). All rights reserved.
#
#  This software is distributed WITHOUT ANY WARRANTY; without even
#  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
#  PURPOSE.
#
#  See LICENSE.txt in the top level directory for details.
#
#============================================================================*/

option(BUILD_Boost "Build Boost." ON)
mark_as_advanced(BUILD_Boost)

if(BUILD_Boost)

  if (WIN32) # Seems ok on Linux/Mac, I don't want to be too restrictive.
    set(SKSURGERYPCLCPP_CMAKE_MINIMUM_REQUIRED_VERSION 3.12) # Assuming Boost 1.67
    cmake_minimum_required(VERSION ${SKSURGERYPCLCPP_CMAKE_MINIMUM_REQUIRED_VERSION})
  endif()
  
  list(APPEND SKSURGERYPCLCPP_BOOST_LIBS "filesystem")
  list(APPEND SKSURGERYPCLCPP_BOOST_LIBS "system")
  list(APPEND SKSURGERYPCLCPP_BOOST_LIBS "date_time")
  list(APPEND SKSURGERYPCLCPP_BOOST_LIBS "regex")
  list(APPEND SKSURGERYPCLCPP_BOOST_LIBS "thread")
  list(APPEND SKSURGERYPCLCPP_BOOST_LIBS "iostreams")
  list(APPEND SKSURGERYPCLCPP_BOOST_LIBS "program_options")
endif()
