-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
138 lines (117 loc) · 4.55 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# ************************************************************************************************
# ****** sub directories**************************************************************************
# ************************************************************************************************
add_subdirectory(App)
if(BUILD_GUI)
add_subdirectory(Gui)
endif(BUILD_GUI)
# ************************************************************************************************
# ****** Python non Gui packages and modules *****************************************************
# ************************************************************************************************
SET(AplanBaseModules_SRCS
Init.py
InitGui.py
ObjectsAplan.py
)
SET(AplanCommands_SRCS
aplancommands/__init__.py
aplancommands/commands.py
aplancommands/manager.py
)
SET(AplanObjects_SRCS
aplanobjects/__init__.py
aplanobjects/base_aplanpythonobject.py
aplanobjects/compound.py
aplanobjects/geom_constraints.py
aplanobjects/graphs.py
aplanobjects/part_filter.py
aplanobjects/topo_constraints.py
)
SET(AplanSolvers_SRCS
# AND-OR graph generators
aplansolvers/aplan_aog_generators/__init__.py
# Connection detectors
aplansolvers/aplan_connection_detectors/__init__.py
aplansolvers/aplan_connection_detectors/base_connection_detector.py
aplansolvers/aplan_connection_detectors/swell_occt.py
# Obstruction detectors
aplansolvers/aplan_obstruction_detectors/__init__.py
aplansolvers/aplan_obstruction_detectors/base_obstruction_detector.py
aplansolvers/aplan_obstruction_detectors/base_view_obstruction_detector.py
aplansolvers/aplan_obstruction_detectors/occt.py
aplansolvers/aplan_obstruction_detectors/occt_multiproc.py
aplansolvers/aplan_obstruction_detectors/occt_view.py
)
SET(AplanTools_SRCS
aplantools/__init__.py
aplantools/aplanutils.py
)
SET(AplanAllScripts
${AplanBaseModules_SRCS}
${AplanCommands_SRCS}
${AplanObjects_SRCS}
${AplanSolvers_SRCS}
${AplanTools_SRCS}
)
ADD_CUSTOM_TARGET(AplanScriptsTarget ALL
SOURCES ${AplanAllScripts}
)
fc_copy_sources(AplanScriptsTarget "${CMAKE_BINARY_DIR}/Mod/Aplan" ${AplanAllScripts})
# install directories for Python packages (for make install)
INSTALL(FILES ${AplanBaseModules_SRCS} DESTINATION Mod/Aplan)
INSTALL(FILES ${AplanCommands_SRCS} DESTINATION Mod/Aplan/aplancommands)
INSTALL(FILES ${AplanObjects_SRCS} DESTINATION Mod/Aplan/aplanobjects)
INSTALL(FILES ${AplanSolvers_SRCS} DESTINATION Mod/Aplan/aplansolvers)
INSTALL(FILES ${AplanTools_SRCS} DESTINATION Mod/Aplan/aplantools)
# ************************************************************************************************
# ****** Python Gui packages and modules *********************************************************
# ************************************************************************************************
SET(AplanGuiTaskPanels_SRCS
aplantaskpanels/__init__.py
aplantaskpanels/task_geom_constraints.py
aplantaskpanels/task_part_filter.py
aplantaskpanels/task_topo_constraints.py
)
SET(AplanGuiViewProvider_SRCS
aplanviewprovider/__init__.py
aplanviewprovider/view_compound.py
aplanviewprovider/view_geom_constraints.py
aplanviewprovider/view_part_filter.py
aplanviewprovider/view_topo_constraints.py
)
SET(AplanGuiWebApp_SRCS
# CSS
aplanwebapp/static/css/error.css
aplanwebapp/static/css/style.css
# JS
aplanwebapp/static/js/connection_graph.js
aplanwebapp/static/js/error.js
aplanwebapp/static/js/obstruction_graph.js
# JSON
aplanwebapp/static/json/config_params.json
# HTML
aplanwebapp/templates/connection_graph.html
aplanwebapp/templates/error_404.html
aplanwebapp/templates/error_500.html
aplanwebapp/templates/obstruction_graph.html
# Python
aplanwebapp/__init__.py
aplanwebapp/api.py
aplanwebapp/browser.py
aplanwebapp/server.py
)
SET(AplanAllGuiScripts
${AplanGuiTaskPanels_SRCS}
${AplanGuiViewProvider_SRCS}
${AplanGuiWebApp_SRCS}
)
if(BUILD_GUI)
ADD_CUSTOM_TARGET(AplanGuiScriptsTarget ALL
SOURCES ${AplanAllGuiScripts}
)
fc_copy_sources(AplanGuiScriptsTarget "${CMAKE_BINARY_DIR}/Mod/Aplan" ${AplanAllGuiScripts})
# install directories for Python packages (for make install)
INSTALL(FILES ${AplanGuiTaskPanels_SRCS} DESTINATION Mod/Aplan/aplantaskpanels/)
INSTALL(FILES ${AplanGuiViewProvider_SRCS} DESTINATION Mod/Aplan/aplanviewprovider/)
INSTALL(FILES ${AplanGuiWebApp_SRCS} DESTINATION Mod/Aplan/aplanwebapp/)
endif(BUILD_GUI)