about summary refs log tree commit diff homepage
path: root/tools/klee-replay/CMakeLists.txt
blob: 83fddaeb38fd90d0842fb15355f4d18ec6d62636 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#===------------------------------------------------------------------------===#
#
#                     The KLEE Symbolic Virtual Machine
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
if (HAVE_PTY_H OR HAVE_UTIL_H OR HAVE_LIBUTIL_H)
  add_executable(klee-replay
    fd_init.c
    file-creator.c
    klee-replay.c
    klee_init_env.c
  )

  target_link_libraries(klee-replay PRIVATE kleeBasic)
  target_include_directories(klee-replay PRIVATE ${KLEE_INCLUDE_DIRS})

  if(LIBCAP_LIBRARIES)
    target_link_libraries(klee-replay PRIVATE ${LIBCAP_LIBRARIES})
  endif()

  if (openpty_in_libutil)
    target_link_libraries(klee-replay PRIVATE ${LIBUTIL_LIBRARIES})
  endif (openpty_in_libutil)

  install(TARGETS klee-replay RUNTIME DESTINATION bin)
else()
  message(WARNING "Not building klee-replay due to missing library for pty functions.")
endif()