4 # 標準でfind_packageできるものと,自分でFindXXX.cmakeファイルを用意しなければならないものがある.標準で備わっているかどうかは,
6 # http://www.cmake.org/cmake/help/cmake-2-8-docs.html
12 find_package(Boost COMPONENTS filesystem thread)
14 message(STATUS "Found the Boost Library:")
15 message(STATUS " include directories=${Boost_INCLUDE_DIR}")
16 message(STATUS " library directories=${Boost_LIBRARY_DIRS}")
17 include_directories(${Boost_INCLUDE_DIR})
18 link_libraries(${Boost_LIBRARIES})
20 message(FATAL_ERROR "Could not find Boost Library.")