-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
70 lines (65 loc) · 1.47 KB
/
CMakeLists.txt
File metadata and controls
70 lines (65 loc) · 1.47 KB
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
# Project name. Should be the same as the project directory name and
# will become the name of the binary target.
SET( PROJECT_NAME "FractureSim")
SET( CUDA_LIB "CUDA_KERNELS")
# Link cuda code in a library to something else.
CUDA_ADD_LIBRARY( ${CUDA_LIB}
Physics_kernels.cu
Visualization_kernels.cu
Precompute_kernels.cu
CudaMath.cu
)
# Project source code list
SET( PROJECT_SOURCES
# Add all the cpp source files here
main.cpp
TLEDNode.cpp
VertexPool.cpp
Surface.cpp
Solid.cpp
SolidFactory.cpp
MaterialPropertiesFactory.cpp
Body.cpp
GridNode.cpp
CoordSystemNode.cpp
MshObjLoader.cpp
TetGenLoader.cpp
VboManager.cpp
Shapes.cpp
Precompute.cpp
CrackStrategyOne.cpp
CudaMem.cpp
Modifier.cpp
FixedModifier.cpp
ForceModifier.cpp
DisplacementModifier.cpp
SimpleCollisionModifier.cpp
MovableCollisionModifier.cpp
)
# Include needed to use SDL under Mac OS X
IF(APPLE)
SET(PROJECT_SOURCES ${PROJECT_SOURCES} ${SDL_MAIN_FOR_MAC})
ENDIF(APPLE)
# Project executable
ADD_EXECUTABLE( ${PROJECT_NAME}
${PROJECT_SOURCES}
)
# Project dependencies
TARGET_LINK_LIBRARIES( ${PROJECT_NAME}
# Core library dependencies
OpenEngine_Core
OpenEngine_Logging
OpenEngine_Display
OpenEngine_Devices
OpenEngine_Scene
# Extension dependencies
Extensions_SDL
Extensions_SetupHelpers
Extensions_GenericHandlers
Extensions_OpenGLRenderer
Extensions_CUDA
# Project libs
#${CUDA_TARGET_LINK} #cuda
${CUDA_CUT_LIBRARIES} #cutil
${CUDA_LIB}
)