2019-11-18 08:23:31 +08:00
|
|
|
# //===----------------------------------------------------------------------===//
|
|
|
|
# //
|
|
|
|
# // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
# // See https://llvm.org/LICENSE.txt for details.
|
|
|
|
# // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
# //
|
|
|
|
# //===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-23 13:56:01 +08:00
|
|
|
if(LIBOMP_OMPT_SUPPORT)
|
|
|
|
include_directories(${LIBOMP_INCLUDE_DIR})
|
2019-11-18 08:23:31 +08:00
|
|
|
|
2020-01-23 13:56:01 +08:00
|
|
|
add_library(archer SHARED ompt-tsan.cpp)
|
|
|
|
add_library(archer_static STATIC ompt-tsan.cpp)
|
2019-11-18 08:23:31 +08:00
|
|
|
|
2020-01-23 13:56:01 +08:00
|
|
|
install(TARGETS archer archer_static
|
|
|
|
LIBRARY DESTINATION ${OPENMP_INSTALL_LIBDIR}
|
|
|
|
ARCHIVE DESTINATION ${OPENMP_INSTALL_LIBDIR})
|
2019-11-18 08:23:31 +08:00
|
|
|
|
2020-01-23 13:56:01 +08:00
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|