Test suite builds on amd-64/linux
[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 find_package (ThreadDB)
7 include_directories (
8                     ${LIBELF_INCLUDE_DIR}
9                     ${LIBDWARF_INCLUDE_DIR}
10 )
11 endif()
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 )