1# //===----------------------------------------------------------------------===//
2# //
3# // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4# // See https://llvm.org/LICENSE.txt for details.
5# // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6# //
7# //===----------------------------------------------------------------------===//
8
9
10
11if(LIBOMP_OMPT_SUPPORT)
12  include_directories(${LIBOMP_INCLUDE_DIR})
13
14  add_library(archer SHARED ompt-tsan.cpp)
15  add_library(archer_static STATIC ompt-tsan.cpp)
16
17  install(TARGETS archer archer_static
18    LIBRARY DESTINATION ${OPENMP_INSTALL_LIBDIR}
19    ARCHIVE DESTINATION ${OPENMP_INSTALL_LIBDIR})
20
21  add_subdirectory(tests)
22endif()
23