This repository has been archived by the owner on Dec 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
65 lines (47 loc) · 1.74 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
62
63
64
65
cmake_minimum_required(VERSION 3.0)
project(genFFT)
# Define a version for the code
if( NOT DEFINED GENFFT_VERSION_MAJOR )
set( GENFFT_VERSION_MAJOR 1 )
endif( )
if( NOT DEFINED GENFFT_VERSION_MINOR )
set( GENFFT_VERSION_MINOR 0 )
endif( )
if( NOT DEFINED GENFFT_VERSION_PATCH )
set( GENFFT_VERSION_PATCH 0 )
endif( )
set(GENFFT_VERSION "${GENFFT_VERSION_MAJOR}.${GENFFT_VERSION_MINOR}.${GENFFT_VERSION_PATCH}")
set(GENFFT_SOVERSION 1)
set(SUFFIX_LIB "")
add_subdirectory(genFFT)
add_subdirectory(sample)
if( WIN32 )
set( destdir CMake )
else( )
set( destdir lib${SUFFIX_LIB}/cmake/clFFT )
endif( )
install( FILES
"genFFT/genFFT.h"
DESTINATION
"./include" )
install( FILES ${CMAKE_SOURCE_DIR}/FindgenFFT.cmake DESTINATION ${destdir} )
# The following code is setting variables to control the behavior of CPack to generate our
set(CPACK_PACKAGE_NAME "genFFT")
set(CPACK_PACKAGE_CONTACT "[email protected]")
set(CPACK_PACKAGE_DESCRIPTION "A software library containing FFT functions written in OpenCL")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "OpenCL implementation of an FFT library, by Intel")
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${GENFFT_VERSION}-${CMAKE_HOST_SYSTEM_NAME}" )
set(CPACK_PACKAGE_VENDOR "Neutral")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/license.txt")
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md")
if( WIN32 )
set( CPACK_SOURCE_GENERATOR "ZIP" )
set( CPACK_GENERATOR "ZIP" )
else( )
set( CPACK_DEBIAN_PACKAGE_DEPENDS "opencl-c-headers (>=1.2)")
set( CPACK_DEBIAN_PACKAGE_RECOMMENDS "build-essential, cmake")
set( CPACK_SOURCE_GENERATOR "TGZ;DEB" )
set( CPACK_GENERATOR "TGZ;DEB" )
endif( )
# Define all variables that influence CPack before including CPack, such as install targets
include( CPack )