summaryrefslogtreecommitdiff
path: root/utests/CMakeLists.txt
blob: 507ef0daf013027d1aec2920b9a376c9b38c9c19 (plain)
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
32
33
34
35
36
37
38
39
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}
                    ${CMAKE_CURRENT_SOURCE_DIR}/../include)

ADD_LIBRARY(utests SHARED
            utest_error.c
            utest_helper.cpp
            utest_file_map.cpp
            utest_assert.cpp
            utest.cpp
#app_mandelbrot.cpp
            compiler_write_only.cpp
            compiler_write_only_shorts.cpp
            compiler_write_only_bytes.cpp
            compiler_sub_bytes.cpp
            compiler_sub_shorts.cpp
            compiler_copy_buffer.cpp
            compiler_copy_buffer_row.cpp
            compiler_byte_scatter.cpp
            compiler_short_scatter.cpp
            compiler_uint2_copy.cpp
            compiler_uint3_copy.cpp
            compiler_uint3_unaligned_copy.cpp
            compiler_if_else.cpp
            compiler_unstructured_branch0.cpp
            compiler_unstructured_branch1.cpp
            compiler_unstructured_branch2.cpp
            compiler_unstructured_branch3.cpp
            compiler_lower_return0.cpp
            compiler_lower_return1.cpp
            compiler_lower_return2.cpp
            compiler_array.cpp)
TARGET_LINK_LIBRARIES(utests cl m)

ADD_EXECUTABLE(run utest_run.cpp)
TARGET_LINK_LIBRARIES(run utests)

ADD_EXECUTABLE(flat_address_space runtime_flat_address_space.cpp)
TARGET_LINK_LIBRARIES(flat_address_space utests)