-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
46 lines (31 loc) · 1.3 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
# For FindPython3.
cmake_minimum_required(VERSION 3.12)
project(qmkl6 VERSION 0.0.0 LANGUAGES CXX
DESCRIPTION "Math Kernel Library for VideoCore VI QPU")
include(CTest)
find_package(PkgConfig)
if (NO_QMKL6)
message(STATUS "Not building QMKL6 because NO_QMKL6 is set")
else (NO_QMKL6)
set(CPACK_GENERATOR "DEB")
set(CPACK_PACKAGE_CONTACT "Yukimasa Sugizaki <[email protected]>")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${PROJECT_DESCRIPTION})
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6, libdrm_v3d")
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX /usr CACHE PATH "Install prefix" FORCE)
endif ()
set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
message(STATUS "Install prefix is set to ${CMAKE_INSTALL_PREFIX}")
include(GNUInstallDirs)
include(CPack)
find_package(Python3 REQUIRED COMPONENTS Interpreter)
pkg_check_modules(DRM_V3D REQUIRED libdrm_v3d)
add_subdirectory(include)
add_subdirectory(src)
configure_file(blas-qmkl6.pc.in blas-qmkl6.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/blas-qmkl6.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
endif (NO_QMKL6)
add_subdirectory(test)