Add magic BG/Q LLNL include path
[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 endif()
13
14 if (PLATFORM MATCHES "bgq")
15 # Not a find per se, just a magic include line
16 set (PATH_BGQ "/bgsys/drivers/ppcfloor" CACHE STRING "Path to BG/Q include files")
17 if (NOT (PATH_BGQ STREQUAL ""))
18 include_directories (${PATH_BGQ})
19 endif()
20 endif()
21
22 set (PATH_BOOST "/usr" CACHE STRING "Path to boost")
23 if (NOT (PATH_BOOST STREQUAL ""))
24   set (CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} ${PATH_BOOST}/lib ${PATH_BOOST}/lib64)
25   set (CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} ${PATH_BOOST}/include)
26 endif()
27
28 find_package (Boost REQUIRED)
29
30 include_directories (
31                     ${Boost_INCLUDE_DIRS}
32 )