
if(APPLE)
  # MacPorts installs the Boost configuration file in a non-standard location,
  # keep using the old FindBoost module for now.
  find_package(Boost COMPONENTS graph chrono REQUIRED)
elseif(CMAKE_VERSION VERSION_LESS "3.30")
  find_package(Boost COMPONENTS graph chrono REQUIRED)
else()
  find_package(Boost CONFIG COMPONENTS graph chrono REQUIRED)
endif()

if(Boost_graph_FOUND AND Boost_chrono_FOUND)
  omc_add_subdirectory(auto)
else()
  message(STATUS "Required boost libraries (graph, chrono) not found for ParModAuto. Disabling ParModAuto.")
endif()

find_package(OpenCL)

if(OpenCL_FOUND)
  omc_add_subdirectory(explicit/openclrt)
else()
  message(STATUS "Required OpenCL libraries not found for ParModExp. Disabling ParModExp.")
endif()
