@@ -157,6 +157,22 @@ endif()
157157# where the binary is actually not in the same directory as the shared
158158# libraries it depends on.
159159#
160+
161+ #Add additional forward paths
162+ set (additional_forward_paths_build "" )
163+ foreach (lib_path ${SlicerExecutionModel_ADDITIONAL_FORWARD_PATHS_BUILD} )
164+ string (APPEND additional_forward_paths_build
165+ "\" ${lib_path} \" , "
166+ )
167+ endforeach ()
168+
169+ set (additional_forward_paths_install "" )
170+ foreach (lib_path ${SlicerExecutionModel_ADDITIONAL_FORWARD_PATHS_INSTALL} )
171+ string (APPEND additional_forward_paths_install
172+ "\" ${lib_path} \" , "
173+ )
174+ endforeach ()
175+
160176if (JsonCpp_FOUND)
161177 get_filename_component (json_library_dir ${JsonCpp_LIBRARY} DIRECTORY )
162178 set (json_forward_path_build
@@ -171,17 +187,20 @@ set(GenerateCLP_FORWARD_PATH_BUILD " \\
171187 \" .\" CONFIG_DIR_POST, \\
172188 \" ${ITK_DIR} /bin\" CONFIG_DIR_POST, \\
173189 ${json_forward_path_build} \\
190+ ${additional_forward_paths_build} \\
174191 \" ${ModuleDescriptionParser_DIR} /bin\" CONFIG_DIR_POST \\
175192" )
176193set (GenerateCLP_FORWARD_PATH_INSTALL " \\
177194 \" .\" , \\
178195 \" ${ITK_DIR} /bin\" , \\
179196 ${json_forward_path_install} \\
197+ ${additional_forward_paths_install} \\
180198 \" ${ModuleDescriptionParser_DIR} /bin\" \\
181199" )
182200set (GenerateCLP_FORWARD_EXE GenerateCLP)
183201set (GenerateCLP_FORWARD_DIR_INSTALL ".." )
184202
203+
185204# --------------------------------------------------------------------------
186205# Build launcher
187206# --------------------------------------------------------------------------
0 commit comments