File: CMakeLists.txt

package info (click to toggle)
libthrust 1.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 10,208 kB
  • sloc: ansic: 28,429; cpp: 26,501; python: 1,228; perl: 460; sh: 348; makefile: 103
file content (20 lines) | stat: -rw-r--r-- 551 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# Disabled as these test names are too long for CMAKE_OBJECT_PATH_MAX.
# We should integrate these with the other unit tests.
# See issue #1205.
#
return()

file(GLOB test_srcs
  RELATIVE "${CMAKE_CURRENT_LIST_DIR}}"
  CONFIGURE_DEPENDS
  *.cu *.cpp
)

foreach(thrust_target IN LISTS THRUST_TARGETS)
  foreach(test_src IN LISTS test_srcs)
    get_filename_component(test_name "${test_src}" NAME_WLE)
    string(PREPEND test_name "regression.")
    thrust_add_test(test_target ${test_name} "${test_src}" ${thrust_target})
  endforeach()
endforeach()