-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
66 lines (58 loc) · 1.6 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
cmake_minimum_required(VERSION 3.26)
cmake_policy(SET CMP0091 NEW)
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreadedDLL)
set(CMAKE_CXX_STANDARD 17)
project(HinaFlow)
include(./FindHoudini.cmake)
set(SRC_FILES
diffusion
flip
image
pbf
phiflow_smoke
poisson
tomography
wave
)
set(DOP_NODEs
AdaptiveDomain
DebugSPHKernel
PhiFlowFetchField
PhiFlowFreeSolve
PhiFlowSmoke2D
PhiFlowSmoke3D
PhiFlowVisualizeField
RayIntersectVisualizer
ReadNPZFiles
ReconstructDensity
SolveDiffusion
SolvePoisson
SolverFLIP
SolverPBF
SolverPhiFlow
SolveWave
VolumeRender
)
set(SOP_NODEs
Image2Volume
)
set(SOURCES
hdk/Entrance.cpp
common.h
)
foreach (NODE ${SRC_FILES})
list(APPEND SOURCES src/${NODE}.cpp src/${NODE}.h)
endforeach ()
foreach (NODE ${DOP_NODEs})
list(APPEND SOURCES hdk/GAS_${NODE}.cpp hdk/GAS_${NODE}.h)
configure_file(./icon.png ${HOUDINI_INSTALL_DIR}/config/icons/DOP_${NODE}.png COPYONLY)
endforeach ()
foreach (NODE ${SOP_NODEs})
list(APPEND SOURCES hdk/SOP_${NODE}.cpp hdk/SOP_${NODE}.h)
configure_file(./icon.png ${HOUDINI_INSTALL_DIR}/config/icons/SOP_${NODE}.png COPYONLY)
houdini_generate_proto_headers(FILES hdk/SOP_${NODE}.cpp)
endforeach ()
add_library(SIM_HinaFlow SHARED ${SOURCES})
target_link_libraries(SIM_HinaFlow PUBLIC Houdini)
target_include_directories(SIM_HinaFlow PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
houdini_configure_target(SIM_HinaFlow)