brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 2b4aa78 Raw
35 lines · plain
1##===----------------------------------------------------------------------===##2#3# Add ompTest unit tests to check-openmp.4#5##===----------------------------------------------------------------------===##6 7# Target: ompTest library unit tests8set(UNITTEST_SOURCES9  unittests/asserter-seq-test.cpp10  unittests/internal-event-eq-test.cpp11  unittests/internal-event-tostring-test.cpp12  unittests/internal-util-test.cpp13  unittests/main-test.cpp14)15add_executable(omptest-unittests ${UNITTEST_SOURCES})16 17# Add local and LLVM-provided GoogleTest include directories.18target_include_directories(omptest-unittests PRIVATE19  ../include20  ${LLVM_THIRD_PARTY_DIR}/unittest/googletest/include)21 22target_link_libraries(omptest-unittests PRIVATE omptest)23 24set_target_properties(omptest-unittests PROPERTIES25  RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})26 27# Add ompTest unit tests to check-openmp28add_openmp_testsuite(check-ompt-omptest "Running OMPT ompTest unit tests"29  ${CMAKE_CURRENT_BINARY_DIR} DEPENDS omptest-unittests)30 31# Configure the lit.site.cfg.in file32set(AUTO_GEN_COMMENT "## Autogenerated by OPENMP_TOOLS_OMPTEST_TEST "33                     "configuration.\n# Do not edit!")34configure_file(lit.site.cfg.in lit.site.cfg @ONLY)35