Append RTlib properties, don't overwrite
[dyninst.git] / cmake / packages.cmake
1 if (UNIX)
2
3 find_package (LibElf REQUIRED)
4 find_package (LibDwarf REQUIRED)
5 find_package (LibIberty)
6 find_package (ThreadDB)
7 include_directories (
8                     ${LIBELF_INCLUDE_DIR}
9                     ${LIBDWARF_INCLUDE_DIR}
10 )
11 elseif(WIN32)
12 find_package (DIASDK REQUIRED)
13 include_directories(${DIASDK_INCLUDE_DIR})
14 endif()
15
16 if (PLATFORM MATCHES "bgq")
17 # Not a find per se, just a magic include line
18 set (PATH_BGQ "/bgsys/drivers/ppcfloor" CACHE STRING "Path to BG/Q include files")
19 if (NOT (PATH_BGQ STREQUAL ""))
20 include_directories (${PATH_BGQ})
21 endif()
22 endif()
23
24 set (PATH_BOOST "/usr" CACHE STRING "Path to boost")
25 if (NOT (PATH_BOOST STREQUAL ""))
26   set (CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} ${PATH_BOOST}/lib ${PATH_BOOST}/lib64)
27   set (CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} ${PATH_BOOST}/include)
28 endif()
29
30 find_package (Boost REQUIRED)
31
32 include_directories (
33                     ${Boost_INCLUDE_DIRS}
34 )