forked from FrancoisGrondin/gccphat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
77 lines (64 loc) · 1.41 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
66
67
68
69
70
71
72
73
74
75
76
77
project(GCCPHAT)
cmake_minimum_required(VERSION 2.4.6)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
find_package(PkgConfig REQUIRED)
pkg_check_modules(PC_FFTW3 REQUIRED fftw3f)
include_directories("${PROJECT_SOURCE_DIR}/include")
set(CMAKE_BUILD_TYPE "Release")
set(EXECUTABLE_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/bin")
set(LIBRARY_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/lib")
#Add base directory for includes (global)
include_directories(include/gccphat_fft)
include_directories(include/gccphat_mm)
include_directories(include/gccphat_svd)
#add_subdirectory(include)
set(SRC_FFT
src/gccphat_fft/utils/gpfft.c
src/gccphat_fft/utils/gpfftqi.c
)
set(SRC_MM
src/gccphat_mm/utils/gpmm.c
)
set(SRC_SVD
src/gccphat_svd/utils/gpsvd.c
src/gccphat_svd/utils/matrix.c
src/gccphat_svd/utils/svd.c
)
add_library(gccphat_fft SHARED
${SRC_FFT}
)
add_library(gccphat_mm SHARED
${SRC_MM}
)
add_library(gccphat_svd SHARED
${SRC_SVD}
)
target_link_libraries(gccphat_fft
${PC_FFTW3_LIBRARIES}
m
)
target_link_libraries(gccphat_mm
m
)
target_link_libraries(gccphat_svd
m
)
add_executable(simulate
demo/simulate.c
)
target_link_libraries(simulate
m
)
add_executable(gccphat
demo/gccphat.c
)
target_link_libraries(gccphat
gccphat_fft
gccphat_mm
gccphat_svd
)
install(TARGETS gccphat_fft DESTINATION lib)
install(TARGETS gccphat_mm DESTINATION lib)
install(TARGETS gccphat_svd DESTINATION lib)