Where can I find a list of boost components that I can use in cmake?

I have a cmake file that adds boost like this:

if(ADD_BOOST)
#add boost library
  set(Boost_USE_STATIC_LIBS ON)
    set(Boost_USE_STATIC_RUNTIME ON)
  file(TO_CMAKE_PATH $ENV{BOOST_ROOT} BOOST_ROOT)
  if (MSVC)
    set(BOOST_LIBRARYDIR ${BOOST_ROOT}/lib64-msvc-12.0)
  else (MSVC)
    set(BOOST_LIBRARY_DIR $ENV{BOOST_ROOT})
  endif (MSVC)
  find_package(Boost COMPONENTS filesystem system program-options thread REQUIRED)
endif (ADD_BOOST)

      

I have this line:

 find_package(Boost COMPONENTS filesystem system program-options thread REQUIRED)

      

I want to use the libabray software option from boost. what name should i add to the list above?

Where can I find a list of the accelerating library that I can use in the above line in cmake?

+3


source to share


1 answer


On an Ubuntu system, for example, run:

aptitude show libboost-all-dev 

      



Take a look at the output "Depends". It lists the names of all boost components.

-1


source







All Articles