forked from ROCm/Thrust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
24 lines (18 loc) · 886 Bytes
/
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
cmake_minimum_required(VERSION 3.5)
set (PROJECT_NAME "Thrust")
project(${PROJECT_NAME})
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/thrust/ DESTINATION include/thrust USE_SOURCE_PERMISSIONS)
# Packaging directives
set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
set(CPACK_PACKAGE_VENDOR "AMD")
set(CPACK_PACKAGE_VERSION_MAJOR ${BUILD_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${BUILD_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${BUILD_VERSION_PATCH})
set(CPACK_PACKAGE_CONTACT "Ben Sander (ben.sander@amd.com)")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "HIP back-end for Thrust (alpha release).")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/NOTICE")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
# Debian and RPM specific variables
set(CPACK_DEBIAN_PACKAGE_DEPENDS "cub-hip")
set(CPACK_RPM_PACKAGE_DEPENDS "cub-hip")
include(CPack)