-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
53 lines (43 loc) · 1.98 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
cmake_minimum_required(VERSION 2.6)
find_package(PkgConfig)
PROJECT(libmali C)
INCLUDE(GNUInstallDirs)
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig/egl.pc.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/egl.pc" @ONLY)
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig/gbm.pc.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/gbm.pc" @ONLY)
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig/glesv2.pc.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/glesv2.pc" @ONLY)
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig/mali.pc.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/mali.pc" @ONLY)
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig/wayland-egl.pc.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/wayland-egl.pc" @ONLY)
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig/OpenCL.pc.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/OpenCL.pc" @ONLY)
INSTALL(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/mali.icd"
DESTINATION "${CMAKE_INSTALL_SYSCONFDIR}/OpenCL/vendors/")
INSTALL(FILES
"${CMAKE_CURRENT_SOURCE_DIR}/r8p0-01rel0/aarch64-linux-gnu/x11/libMali.so.8.0"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/x11")
INSTALL(FILES
"${CMAKE_CURRENT_SOURCE_DIR}/r8p0-01rel0/aarch64-linux-gnu/fbdev/libMali.so.8.0"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/fbdev")
INSTALL(FILES
"${CMAKE_CURRENT_SOURCE_DIR}/r8p0-01rel0/aarch64-linux-gnu/wayland/libMali.so.8.0"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/wayland")
INSTALL(FILES
"${CMAKE_CURRENT_BINARY_DIR}/egl.pc"
"${CMAKE_CURRENT_BINARY_DIR}/gbm.pc"
"${CMAKE_CURRENT_BINARY_DIR}/glesv2.pc"
"${CMAKE_CURRENT_BINARY_DIR}/mali.pc"
"${CMAKE_CURRENT_BINARY_DIR}/wayland-egl.pc"
"${CMAKE_CURRENT_BINARY_DIR}/OpenCL.pc"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig/")
INSTALL(FILES
"${CMAKE_CURRENT_SOURCE_DIR}/r8p0-01rel0/glesHeaders/GBM/gbm.h"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/")
INSTALL(DIRECTORY
"${CMAKE_CURRENT_SOURCE_DIR}/r8p0-01rel0/glesHeaders/EGL"
"${CMAKE_CURRENT_SOURCE_DIR}/r8p0-01rel0/glesHeaders/GLES"
"${CMAKE_CURRENT_SOURCE_DIR}/r8p0-01rel0/glesHeaders/GLES2"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/")