• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1if (NOT LIBIPT_INCLUDE_PATH)
2  message (FATAL_ERROR "libipt include path not provided")
3endif()
4
5if (NOT EXISTS "${LIBIPT_INCLUDE_PATH}")
6  message (FATAL_ERROR "invalid libipt include path provided")
7endif()
8include_directories(${LIBIPT_INCLUDE_PATH})
9
10if (NOT LIBIPT_LIBRARY_PATH)
11  find_library(LIBIPT_LIBRARY ipt)
12else()
13  if (NOT EXISTS "${LIBIPT_LIBRARY_PATH}")
14    message (FATAL_ERROR "invalid libipt library path provided")
15  endif()
16  find_library(LIBIPT_LIBRARY ipt PATHS ${LIBIPT_LIBRARY_PATH})
17endif()
18
19if (NOT LIBIPT_LIBRARY)
20  message (FATAL_ERROR "libipt library not found")
21endif()
22
23add_lldb_library(lldbIntelPT
24  PTDecoder.cpp
25  Decoder.cpp
26  cli-wrapper-pt.cpp
27
28  LINK_LIBS
29    ${LIBIPT_LIBRARY}
30    liblldb
31  )
32