I added boost via this:
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost REQUIRED)
include_directories(${Boost_INCLUDE_DIR})
project(APP C CXX)
add_executable(APP src.cpp)
target_link_libraries(APP ${Boost_LIBRARIES})
And when I compiled source, I got:
demo.cpp:(.text+0x3d3): undefined reference to `boost::system::generic_category()'
I checked spelling (Boost_LIBRARIES vs BOOST_LIBRARIES) but it's ok.
I installed boost in Fedora with the package boost-devel.