-
Notifications
You must be signed in to change notification settings - Fork 74
/
CMakeLists.txt
31 lines (24 loc) · 1.12 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#
# Copyright 2023 Benjamin Worpitz, Axel Hübl, Jan Stephan
# SPDX-License-Identifier: MPL-2.0
#
if((NOT alpaka_ACC_GPU_CUDA_ENABLE AND NOT alpaka_ACC_GPU_HIP_ENABLE AND NOT alpaka_ACC_SYCL_ENABLE) OR
(alpaka_ACC_GPU_CUDA_ENABLE AND (alpaka_RELOCATABLE_DEVICE_CODE STREQUAL ON)) OR # OFF by default
(alpaka_ACC_GPU_HIP_ENABLE AND (alpaka_RELOCATABLE_DEVICE_CODE STREQUAL ON)) OR # OFF by default
(alpaka_ACC_SYCL_ENABLE AND NOT (alpaka_RELOCATABLE_DEVICE_CODE STREQUAL OFF))) # ON by default
set(_TARGET_NAME "separableCompilationTest")
append_recursive_files_add_to_src_group("src/" "src/" "cpp" _FILES_SOURCE)
append_recursive_files_add_to_src_group("include/" "include/" "hpp" _FILES_HEADER)
alpaka_add_executable(
${_TARGET_NAME}
${_FILES_SOURCE}
${_FILES_HEADER})
target_include_directories(
${_TARGET_NAME}
PRIVATE "include")
target_link_libraries(
${_TARGET_NAME}
PRIVATE common)
set_target_properties(${_TARGET_NAME} PROPERTIES FOLDER "test/integ")
add_test(NAME ${_TARGET_NAME} COMMAND ${_TARGET_NAME} ${_alpaka_TEST_OPTIONS})
endif()