OSDN Git Service

fix build system ofmoflib1 and saisei1
[moflib/moflib.git] / saisei-1.0 / cmake / OtherLibs.cmake
1 #   依存外部ライブラリの設定
2
3 # - 新たな依存ライブラリを追加するには?
4 #       標準でfind_packageできるものと,自分でFindXXX.cmakeファイルを用意しなければならないものがある.標準で備わっているかどうかは,
5 #
6 #       http://www.cmake.org/cmake/help/cmake-2-8-docs.html
7 #
8 #       を参照すればわかる.
9 #
10
11 # use Boost Library
12 find_package(Boost COMPONENTS filesystem thread)
13 if (Boost_FOUND)
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})
19 else ()
20         message(FATAL_ERROR "Could not find Boost Library.")
21 endif ()