Rename libstackwalker to libstackwalk to match earlier convention; fix PPC arch define
[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
12 if (${PLATFORM} MATCHES "bgq")
13 find_package (LaunchMon REQUIRED)
14 include_directories (${LAUNCHMON_INCLUDE_DIR})
15 endif()
16
17 endif()
18
19
20 set (PATH_BOOST "/usr" CACHE STRING "Path to boost")
21 if (NOT (PATH_BOOST STREQUAL ""))
22   set (CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} ${PATH_BOOST}/lib ${PATH_BOOST}/lib64)
23   set (CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} ${PATH_BOOST}/include)
24 endif()
25
26 find_package (Boost REQUIRED)
27
28 include_directories (
29                     ${Boost_INCLUDE_DIRS}
30 )