More CMake work
[dyninst.git] / cmake / packages.cmake
1 if (UNIX)
2
3 find_package (LibElf REQUIRED)
4 find_package (LibDwarf REQUIRED)
5 find_package (LibIberty REQUIRED)
6 include_directories (
7                     ${LIBELF_INCLUDE_DIR}
8                     ${LIBDWARF_INCLUDE_DIR}
9 )
10 endif()
11
12
13 set (PATH_BOOST "/usr" CACHE STRING "Path to boost")
14 if (NOT (PATH_BOOST STREQUAL ""))
15   set (CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} ${PATH_BOOST}/lib ${PATH_BOOST}/lib64)
16   set (CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} ${PATH_BOOST}/include)
17 endif()
18
19 find_package (Boost REQUIRED)
20
21 include_directories (
22                     ${Boost_INCLUDE_DIRS}
23 )