| 1 |
##===----------------------------------------------------------------------===## |
| 2 |
# |
| 3 |
# Add ompTest unit tests to check-openmp. |
| 4 |
# |
| 5 |
##===----------------------------------------------------------------------===## |
| 6 |
|
| 7 |
# Target: ompTest library unit tests |
| 8 |
set(UNITTEST_SOURCES |
| 9 |
unittests/asserter-seq-test.cpp |
| 10 |
unittests/internal-event-eq-test.cpp |
| 11 |
unittests/internal-event-tostring-test.cpp |
| 12 |
unittests/internal-util-test.cpp |
| 13 |
unittests/main-test.cpp |
| 14 |
) |
| 15 |
add_executable(omptest-unittests ${UNITTEST_SOURCES}) |
| 16 |
|
| 17 |
# Add local include directory and link omptest library |
| 18 |
target_include_directories(omptest-unittests PRIVATE ../include) |
| 19 |
target_link_libraries(omptest-unittests PRIVATE omptest) |
| 20 |
|
| 21 |
set_target_properties(omptest-unittests PROPERTIES |
| 22 |
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) |
| 23 |
|
| 24 |
# Add ompTest unit tests to check-openmp |
| 25 |
add_openmp_testsuite(check-ompt-omptest "Running OMPT ompTest unit tests" |
| 26 |
${CMAKE_CURRENT_BINARY_DIR} DEPENDS omptest-unittests) |
| 27 |
|
| 28 |
# Configure the lit.site.cfg.in file |
| 29 |
set(AUTO_GEN_COMMENT "## Autogenerated by OPENMP_TOOLS_OMPTEST_TEST " |
| 30 |
"configuration.\n# Do not edit!") |
| 31 |
configure_file(lit.site.cfg.in lit.site.cfg @ONLY) |