-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCMakeLists.txt.aps
74 lines (61 loc) · 1.8 KB
/
CMakeLists.txt.aps
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
project(xpcs-eigen)
cmake_minimum_required(VERSION 3.5)
set(CMAKE_BUILD_TYPE RELEASE)
#set(CMAKE_BUILD_TYPE DEBUG)
add_definitions(-std=c++0x)
set(headers
src/xpcs/benchmark.h
src/xpcs/configuration.h
src/xpcs/corr.h
src/xpcs/data_structure/dark_image.h
src/xpcs/funcs.h
src/xpcs/h5_result.h
src/xpcs/data_structure/row.h
src/xpcs/data_structure/sparse_data.h
src/xpcs/io/reader.h
src/xpcs/io/imm.h
src/xpcs/io/ufxc.h
src/xpcs/io/rigaku.h
src/xpcs/io/hdf5.h
src/xpcs/filter/filter.h
src/xpcs/filter/sparse_filter.h
src/xpcs/filter/dense_filter.h
src/xpcs/filter/stride.h
src/xpcs/filter/average.h
src/xpcs/filter/dense_average.h
)
set(sources
src/xpcs/configuration.cpp
src/xpcs/h5_result.cpp
src/xpcs/corr.cpp
src/xpcs/funcs.cpp
src/xpcs/data_structure/dark_image.cpp
src/xpcs/data_structure/sparse_data.cpp
src/xpcs/io/imm.cpp
src/xpcs/io/ufxc.cpp
src/xpcs/io/rigaku.cpp
src/xpcs/io/hdf5.cpp
src/xpcs/filter/sparse_filter.cpp
src/xpcs/filter/dense_filter.cpp
src/xpcs/filter/stride.cpp
src/xpcs/filter/average.cpp
src/xpcs/filter/dense_average.cpp
src/xpcs/main.cpp
)
find_package(OpenMP)
if (OPENMP_FOUND)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()
# TODO. Fix the hard-coded path.
include_directories(
"/APSshare/anaconda/x86_64/include"
"/usr/local/hdf5/include"
"src"
"src/external")
link_directories(
"/usr/local/hdf5/lib"
"/APSshare/anaconda/x86_64/include")
add_subdirectory("src/external/gflags")
add_executable(corr ${sources})
target_link_libraries(corr hdf5 gflags)