-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
150 lines (138 loc) · 6.16 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
cmake_minimum_required(VERSION 3.5)
project(raremetal VERSION 4.16.1 LANGUAGES C CXX Fortran)
set(CMAKE_CXX_STANDARD 14)
find_package(Threads)
find_library(LIB_STATGEN StatGen)
find_library(LIB_SAVVY savvy)
find_library(LIB_HTS hts)
find_library(LIB_RMATH Rmath)
set(LIBZ_STATIC "${CGET_PREFIX}/lib/libz.a")
set(LIBLZMA_STATIC "${CGET_PREFIX}/lib/liblzma.a")
set(LIBZSTD_STATIC "${CGET_PREFIX}/lib/libzstd.a")
set(LIBBZ2_STATIC "${CGET_PREFIX}/lib/libbz2_static.a")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/otherLib/eigen-3.2.0)
add_library(libraremetal
libRareMetal/mvtnorm/randomF77.c
libRareMetal/pdf/PDF.cpp
libRareMetal/pdf/PDF.h
libRareMetal/pdf/PDFchartaxis.cpp
libRareMetal/pdf/PDFchartaxis.h
libRareMetal/pdf/PDFchartbar.cpp
libRareMetal/pdf/PDFchartbar.h
libRareMetal/pdf/PDFchartbasics.cpp
libRareMetal/pdf/PDFchartbasics.h
libRareMetal/pdf/PDFchartlegend.cpp
libRareMetal/pdf/PDFchartlegend.h
libRareMetal/pdf/PDFchartline.cpp
libRareMetal/pdf/PDFchartline.h
libRareMetal/pdf/PDFchartmarker.cpp
libRareMetal/pdf/PDFchartmarker.h
libRareMetal/pdf/PDFchartobject.cpp
libRareMetal/pdf/PDFchartobject.h
libRareMetal/pdf/PDFfont.cpp
libRareMetal/pdf/PDFfont.h
libRareMetal/pdf/PDFgrid.cpp
libRareMetal/pdf/PDFgrid.h
libRareMetal/pdf/PDFgridcell.cpp
libRareMetal/pdf/PDFgridcell.h
libRareMetal/pdf/PDFhistogram.cpp
libRareMetal/pdf/PDFhistogram.h
libRareMetal/pdf/PDFinfo.cpp
libRareMetal/pdf/PDFinfo.h
libRareMetal/pdf/PDFlinechart.cpp
libRareMetal/pdf/PDFlinechart.h
libRareMetal/pdf/PDFlinechartwithpolygon.cpp
libRareMetal/pdf/PDFlinechartwithpolygon.h
libRareMetal/pdf/PDFmanhattan.cpp
libRareMetal/pdf/PDFmanhattan.h
libRareMetal/pdf/PDFpage.cpp
libRareMetal/pdf/PDFpage.h
libRareMetal/pdf/PDFpageobject.cpp
libRareMetal/pdf/PDFpageobject.h
libRareMetal/src/Kinship.cpp
libRareMetal/src/Kinship.h
libRareMetal/src/KinshipX.cpp
libRareMetal/src/KinshipX.h
libRareMetal/src/MathCholesky.cpp
libRareMetal/src/MathCholesky.h
libRareMetal/src/MathDeriv.cpp
libRareMetal/src/MathDeriv.h
libRareMetal/src/MathFloatVector.cpp
libRareMetal/src/MathFloatVector.h
libRareMetal/src/MathGenMin.cpp
libRareMetal/src/MathGenMin.h
libRareMetal/src/MathGold.cpp
libRareMetal/src/MathGold.h
libRareMetal/src/MathNormal.cpp
libRareMetal/src/MathNormal.h
libRareMetal/src/MathSVD.cpp
libRareMetal/src/MathSVD.h
libRareMetal/src/Rmath.h
libRareMetal/src/TraitTransformations.cpp
libRareMetal/src/TraitTransformations.h
libRareMetal/mvtnorm/mvt.f)
set_target_properties(libraremetal PROPERTIES OUTPUT_NAME raremetal)
target_include_directories(libraremetal PUBLIC libRareMetal/pdf libRareMetal/src)
target_link_libraries(libraremetal ${LIB_STATGEN} ${LIB_HTS} ${CMAKE_THREAD_LIBS_INIT} ${LIBZ_STATIC} ${LIBBZ2_STATIC} ${LIBLZMA_STATIC} ${LIB_RMATH})
add_executable(raremetal
# raremetal/src/Calculate_mvt_pvalue.h
# raremetal/src/group.cpp
raremetal/src/GroupFromAnnotation.cpp
raremetal/src/GroupFromAnnotation.h
raremetal/src/Main.cpp
raremetal/src/Meta.cpp
raremetal/src/Meta.h
raremetal/src/MetaUtility.cpp
raremetal/src/MetaUtility.h
# raremetal/src/MixChidist.h
# raremetal/src/My_mvt.h
# raremetal/src/qfc.h
raremetal/src/QuadProg.cpp
raremetal/src/QuadProg.h
# raremetal/src/Rmath.h
raremetal/src/SummaryFileReader.cpp
raremetal/src/SummaryFileReader.h
# raremetal/src/WriteLog.h
raremetal/src/WritePDF.cpp
raremetal/src/WritePDF.h)
target_include_directories(raremetal PRIVATE otherLib/eigen-3.2.0)
target_link_libraries(raremetal libraremetal)
target_compile_definitions(raremetal PRIVATE VERSION="${PROJECT_VERSION}")
add_executable(raremetalworker
raremetalworker/src/AutoFit.cpp
raremetalworker/src/AutoFit.h
raremetalworker/src/AutoFit2.cpp
raremetalworker/src/AutoFit2.h
#raremetalworker/src/CheckRef.cpp
#raremetalworker/src/CheckRef.h
raremetalworker/src/DataQC.cpp
raremetalworker/src/DataQC.h
raremetalworker/src/FastFit.cpp
raremetalworker/src/FastFit.h
raremetalworker/src/GroupFromAnnotation.cpp
raremetalworker/src/GroupFromAnnotation.h
raremetalworker/src/KinshipEmp.cpp
raremetalworker/src/KinshipEmp.h
raremetalworker/src/logistic.cpp
raremetalworker/src/logistic.h
raremetalworker/src/Main.cpp
raremetalworker/src/OutputKin.cpp
raremetalworker/src/OutputKin.h
raremetalworker/src/PreMeta.cpp
raremetalworker/src/PreMeta.h
#raremetalworker/src/Rmath.h
#raremetalworker/src/snpHWE.h
raremetalworker/src/TransformResiduals.cpp
raremetalworker/src/TransformResiduals.h
#raremetalworker/src/WriteLog.h
raremetalworker/src/WritePDF.cpp
raremetalworker/src/WritePDF.h)
target_include_directories(raremetalworker PRIVATE otherLib/eigen-3.2.0)
target_link_libraries(raremetalworker libraremetal ${LIB_SAVVY} ${LIBZSTD_STATIC})
target_compile_definitions(raremetalworker PRIVATE VERSION="${PROJECT_VERSION}")
if(BUILD_TESTS)
enable_testing()
add_subdirectory(tests)
add_subdirectory(raremetal/tests)
endif()