forked from sergemartin/fluids_v3
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
54 lines (46 loc) · 1.56 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
cmake_minimum_required(VERSION 2.8)
find_package(CUDA)
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-O3 -gencode arch=compute_20,code=sm_20)
set(CUDA_SEPARABLE_COMPILATION ON)
set(BUILD_SHARED_LIBS OFF)
#add_definitions(-g)
#add_definitions(-w)
include_directories(.)
include_directories(./common)
include_directories(./fluids)
#list all source files here
cuda_add_executable(fluids_v3
main.cpp
common/camera3d.cpp
common/geomx.cpp
common/gl_helper.cpp
common/image.cpp
common/matrix.cpp
common/mdebug.cpp
common/mesh.cpp
common/mtime.cpp
common/particle.cpp
common/pivotx.cpp
common/point_set.cpp
common/tinystr.cpp
common/tinyxml.cpp
common/tinyxmlerror.cpp
common/tinyxmlparser.cpp
common/utilities.cpp
common/vector.cpp
common/xml_settings.cpp
fluids/bank_checker.cpp
fluids/cmd_arg_reader.cpp
fluids/cutil.cpp
fluids/fluid.cpp
fluids/fluid_system.cpp
)
cuda_add_library(fluid_system_host fluids/fluid_system_host.cu fluids/fluid_system_kern.cu)
target_link_libraries(fluids_v3 GL)
target_link_libraries(fluids_v3 GLU)
target_link_libraries(fluids_v3 glut)
target_link_libraries(fluids_v3 Cg)
target_link_libraries(fluids_v3 CgGL)
target_link_libraries(fluids_v3 GLee)
target_link_libraries(fluids_v3 OpenCL)
target_link_libraries(fluids_v3 fluid_system_host)