Skip to content

Commit 0ca46b7

Browse files
authored
Merge pull request #123 from Slicer/add-tbb-libs
BUG: Add TBB bin dir to forward path
2 parents 1711abf + f4a0a6c commit 0ca46b7

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ if(SlicerExecutionModel_USE_SERIALIZER)
106106
set(GenerateCLP_USE_SERIALIZER ON)
107107
endif()
108108

109+
109110
#-----------------------------------------------------------------------------
110111
# Note: The default values defined below could be overwritten if passed when configuring
111112
# SlicerExecutionModel project.
@@ -177,6 +178,10 @@ endmacro()
177178
endif()
178179
###
179180

181+
SETIFEMPTY(SlicerExecutionModel_ADDITIONAL_FORWARD_PATHS_BUILD "" CACHE PATH "Specify additional forward build directory paths for GenerateCLPLauncher.")
182+
183+
SETIFEMPTY(SlicerExecutionModel_ADDITIONAL_FORWARD_PATHS_INSTALL "" CACHE PATH "Specify additional forward install directory paths for GenerateCLPLauncher.")
184+
180185
SETIFEMPTY(TCLAP_DIR ${CMAKE_CURRENT_BINARY_DIR}/tclap CACHE PATH "Location of TCLAPConfig.cmake" FORCE)
181186
add_subdirectory(tclap)
182187

@@ -186,6 +191,9 @@ add_subdirectory(ModuleDescriptionParser)
186191
SETIFEMPTY(GenerateCLP_DIR ${CMAKE_CURRENT_BINARY_DIR}/GenerateCLP CACHE PATH "Location of GenerateCLPConfig.cmake" FORCE)
187192
add_subdirectory(GenerateCLP)
188193

194+
195+
196+
189197
# --------------------------------------------------------------------------
190198
# Set INCLUDE_DIRS variable
191199
# --------------------------------------------------------------------------

GenerateCLP/CMakeLists.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
160176
if(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
")
176193
set(GenerateCLP_FORWARD_PATH_INSTALL " \\
177194
\".\", \\
178195
\"${ITK_DIR}/bin\", \\
179196
${json_forward_path_install} \\
197+
${additional_forward_paths_install} \\
180198
\"${ModuleDescriptionParser_DIR}/bin\" \\
181199
")
182200
set(GenerateCLP_FORWARD_EXE GenerateCLP)
183201
set(GenerateCLP_FORWARD_DIR_INSTALL "..")
184202

203+
185204
# --------------------------------------------------------------------------
186205
# Build launcher
187206
# --------------------------------------------------------------------------

0 commit comments

Comments
 (0)