-
Notifications
You must be signed in to change notification settings - Fork 10
/
CMakeLists.txt
53 lines (44 loc) · 1.31 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
#############################
# Specify the project files #
#############################
##
SET(ORUTILS_HEADERS
Vector.h
Matrix.h
Cholesky.h
MathUtils.h
Image.h
CUDADefines.h
LexicalCast.h
MemoryBlock.h
MemoryBlockPersister.h
PlatformIndependence.h
)
#################################################################
# Collect the project files into common, CPU-only and CUDA-only #
#################################################################
set(ORUTILS_OBJECTS
Dummy.cpp
${ORUTILS_HEADERS}
)
#############################
# Specify the source groups #
#############################
SOURCE_GROUP("" FILES ${ORUTILS_HEADERS})
##############################################################
# Specify the include directories, target and link libraries #
##############################################################
add_library(ORUtils ${ORUTILS_OBJECTS})
IF(WITH_CUDA)
# include_directories(${CUDA_INCLUDE_DIRS})
# cuda_add_library(ITMLib
# ${ITMLIB_CPU_OBJECTS}
# ${ITMLIB_CUDA_OBJECTS}
# ${ITMLIB_COMMON_OBJECTS}
# OPTIONS -gencode arch=compute_11,code=compute_11 -gencode arch=compute_30,code=compute_30)
# target_link_libraries(ITMLib ${CUDA_LIBRARY})
ELSE()
# add_definitions(-DCOMPILE_WITHOUT_CUDA)
# add_library(ITMLib ${ITMLIB_CPU_OBJECTS} ${ITMLIB_COMMON_OBJECTS})
ENDIF()
#target_link_libraries(ITMLib Utils)