-
Notifications
You must be signed in to change notification settings - Fork 12
/
CMakeLists.txt
61 lines (51 loc) · 3.18 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
cmake_minimum_required(VERSION 2.8)
project(lima-memtester ASM C)
find_package(Threads REQUIRED)
set(CMAKE_C_FLAGS "-s -static -Os")
add_definitions(-DHAVE_NO_LIBMALI_BLOB -DMESA_EGL_NO_X11_HEADERS)
include_directories(limadriver/include limadriver/limare/lib
limadriver/limare/tests/common)
add_executable(lima-textured-cube
lima-textured-cube.c textured_cube_mainloop.c load_mali_kernel_module.c
limadriver/limare/lib/gp.c limadriver/limare/lib/limare.c
limadriver/limare/lib/bmp.c limadriver/limare/lib/program.c
limadriver/limare/lib/plb.c limadriver/limare/lib/dump.c
limadriver/limare/lib/hfloat.c limadriver/limare/lib/render_state.c
limadriver/limare/lib/pp.c limadriver/limare/lib/fb.c
limadriver/limare/lib/texture.c limadriver/limare/lib/jobs.c
limadriver/limare/lib/symbols.c
limadriver/limare/tests/common/companion_texture_flat.c
limadriver/limare/tests/common/cube_mesh.c
limadriver/limare/tests/common/esTransform.c)
target_link_libraries(lima-textured-cube m rt ${CMAKE_THREAD_LIBS_INIT})
add_executable(lima-memtester
lima-memtester.c textured_cube_mainloop.c load_mali_kernel_module.c
memtester-4.3.0/memtester.c memtester-4.3.0/tests.c
memtester-4.3.0/arm-asm-helpers.S
limadriver/limare/lib/gp.c limadriver/limare/lib/limare.c
limadriver/limare/lib/bmp.c limadriver/limare/lib/program.c
limadriver/limare/lib/plb.c limadriver/limare/lib/dump.c
limadriver/limare/lib/hfloat.c limadriver/limare/lib/render_state.c
limadriver/limare/lib/pp.c limadriver/limare/lib/fb.c
limadriver/limare/lib/texture.c limadriver/limare/lib/jobs.c
limadriver/limare/lib/symbols.c
limadriver/limare/tests/common/companion_texture_flat.c
limadriver/limare/tests/common/cube_mesh.c
limadriver/limare/tests/common/esTransform.c)
set_target_properties(lima-memtester PROPERTIES COMPILE_DEFINITIONS "MEMTESTER_MODE")
target_link_libraries(lima-memtester m rt ${CMAKE_THREAD_LIBS_INIT})
add_executable(lima-memspeed
lima-memspeed.c memspeed_gpu.c memspeed_fb.c arm-neon.S arm-neon.h
load_mali_kernel_module.c
limadriver/limare/lib/gp.c limadriver/limare/lib/limare.c
limadriver/limare/lib/bmp.c limadriver/limare/lib/program.c
limadriver/limare/lib/plb.c limadriver/limare/lib/dump.c
limadriver/limare/lib/hfloat.c limadriver/limare/lib/render_state.c
limadriver/limare/lib/pp.c limadriver/limare/lib/fb.c
limadriver/limare/lib/texture.c limadriver/limare/lib/jobs.c
limadriver/limare/lib/symbols.c
limadriver/limare/tests/common/companion_texture_flat.c
limadriver/limare/tests/common/cube_mesh.c
limadriver/limare/tests/common/esTransform.c)
target_link_libraries(lima-memspeed m rt ${CMAKE_THREAD_LIBS_INIT})
install_programs(/bin FILES lima-textured-cube lima-memtester lima-memspeed)