-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
104 lines (94 loc) · 2.67 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
cmake_minimum_required(VERSION 3.6)
project(Fluids)
set(CMAKE_CXX_STANDARD 14)
SET(CMAKE_CXX_FLAGS "-O3")
#set(CMAKE_EXE_LINKER_FLAGS -static)
FIND_PACKAGE(PNG REQUIRED)
INCLUDE_DIRECTORIES(${PNG_INCLUDE_DIRS})
LINK_LIBRARIES(${PNG_LIBRARIES})
FIND_PACKAGE(GLUT REQUIRED)
INCLUDE_DIRECTORIES(${GLUT_INCLUDE_DIRS})
LINK_LIBRARIES(${GLUT_LIBRARIES})
FIND_PACKAGE(OpenGl REQUIRED)
INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIRS})
LINK_LIBRARIES(${OPENGL_LIBRARIES})
include_directories(lib/eigen)
include_directories(${EIGEN_EXTRA_INCS})
add_definitions(${EIGEN_EXTRA_DEFS})
INCLUDE_DIRECTORIES(include)
set(SOURCE_FILES
include/gfx/config.h
include/gfx/config-osx.h
include/gfx/geom3d.h
include/gfx/geom4d.h
include/gfx/gfx.h
include/gfx/mat2.h
include/gfx/mat3.h
include/gfx/mat4.h
include/gfx/quat.h
include/gfx/symmat2.h
include/gfx/symmat3.h
include/gfx/symmat4.h
include/gfx/vec2.h
include/gfx/vec3.h
include/gfx/vec4.h
Particle.cpp
Particle.h
Fluids.cpp
solvers/Euler.cpp
solvers/Euler.h
solvers/Solver.h
solvers/ConstraintSolver.cpp
solvers/ConstraintSolver.h
View.cpp
View.h
solvers/Midpoint.cpp
solvers/Midpoint.h
solvers/RungeKutta.h
solvers/RungeKutta.cpp
System.cpp
System.h
SystemBuilder.cpp
SystemBuilder.h
constraints/Constraint.h
constraints/RodConstraint.cpp
constraints/RodConstraint.h
constraints/CircularWireConstraint.cpp
constraints/CircularWireConstraint.h
forces/Force.cpp
forces/Force.h
Kernels.cpp
Kernels.h
forces/DirectionalForce.cpp
forces/DirectionalForce.h
forces/DragForce.cpp
forces/DragForce.h
fields/DensityField.cpp
fields/DensityField.h
forces/PressureForce.cpp
forces/PressureForce.h
fields/PressureField.cpp
fields/PressureField.h
forces/ViscosityForce.cpp
forces/ViscosityForce.h
forces/SurfaceForce.h
forces/SurfaceForce.cpp
forces/SpringForce.h
forces/SpringForce.cpp
forces/AngularSpringForce.h
forces/AngularSpringForce.cpp
fields/ColorField.cpp
fields/ColorField.h
data/UniformGrid.cpp
data/UniformGrid.h
RigidBody.cpp
RigidBody.h
MarchingCubes.cpp
MarchingCubes.h
solvers/LeapFrog.cpp
solvers/LeapFrog.h
Contact.h
Object.cpp
Object.h
Contact.cpp parameters.h)
add_executable(Fluids ${SOURCE_FILES})