-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
80 lines (69 loc) · 2.34 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
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(3dgnome LANGUAGES C CXX CUDA)
set(SOURCES
src/main.cpp
src/Anchor.cpp
src/ChromosomesSet.cpp
src/HierarchicalChromosome.cu
src/LooperSolver.cpp
src/BedRegion.cpp
src/Cluster.cpp
src/InteractionArc.cpp
src/ParallelMarkArcs.cu
src/BedRegions.cpp
src/Density.cpp
src/InteractionArcs.cpp
src/ParallelMonteCarloHeatmap.cu
src/Chromosome.cpp
src/Heatmap.cpp
src/Settings.cpp
thirdparty/common.cpp
thirdparty/ini.c
thirdparty/INIReader.cpp
thirdparty/mtxlib.cpp
thirdparty/rmsd.cpp
)
set(HEADERS
include/Anchor.h
include/Chromosome.h
include/Density.h
include/InteractionArc.h
include/Settings.h
include/BedRegion.h
include/ChromosomesSet.h
include/Heatmap.h
include/InteractionArcs.h
include/BedRegions.h
include/Cluster.h
include/HierarchicalChromosome.h
include/LooperSolver.h
thirdparty/common.h
thirdparty/ini.h
thirdparty/INIReader.h
thirdparty/mtxlib.h
thirdparty/rmsd.h
)
add_executable(cudaMMC)
target_compile_options(cudaMMC PUBLIC -Wall)
target_compile_features(cudaMMC PUBLIC cxx_std_17)
set_target_properties(cudaMMC PROPERTIES CXX_STANDARD 17)
set_target_properties(cudaMMC PROPERTIES CMAKE_CUDA_STANDARD 11)
set_target_properties(cudaMMC PROPERTIES CMAKE_CUDA_STANDARD_REQUIRED ON)
if(NOT CUDA_ARCH)
message( SEND_ERROR "YOU NEED TO SPECIFY CUDA ARCHITECTURE E.G. -DCUDA_ARCH=\"80\" " )
endif()
set_target_properties(cudaMMC PROPERTIES CUDA_ARCHITECTURES "${CUDA_ARCH}")
set_target_properties(cudaMMC
PROPERTIES
CUDA_RUNTIME_LIBRARY static
)
target_include_directories(cudaMMC PUBLIC
${CMAKE_SOURCE_DIR}/thirdparty/
${CMAKE_SOURCE_DIR}/include/
)
target_sources(cudaMMC PUBLIC ${SOURCES} ${HEADERS})
set_target_properties( cudaMMC
PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
set_property(TARGET cudaMMC
PROPERTY CUDA_SEPARABLE_COMPILATION ON)
#target_link_libraries(particle_test PRIVATE particles)