File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -160,17 +160,26 @@ endif()
160160# where the binary is actually not in the same directory as the shared
161161# libraries it depends on.
162162#
163+ if (JsonCpp_FOUND)
164+ get_filename_component (json_library_dir ${JsonCpp_LIBRARY} DIRECTORY )
165+ set (json_forward_path_build
166+ "\" ${json_library_dir} \" CONFIG_DIR_POST, \\
167+ \" ${json_library_dir} \" , \\ "
168+ )
169+ set (json_forward_path_install "\" ${json_library_dir} \" , \\ " )
170+ endif ()
171+
163172set (GenerateCLP_FORWARD_DIR_BUILD "${CMAKE_RUNTIME_OUTPUT_DIRECTORY} " )
164173set (GenerateCLP_FORWARD_PATH_BUILD " \\
165174 \" .\" CONFIG_DIR_POST, \\
166175 \" ${ITK_DIR} /bin\" CONFIG_DIR_POST, \\
167- \" ${JsonCpp_DIR} /src/lib_json \" CONFIG_DIR_POST, \\
176+ ${json_forward_path_build}
168177 \" ${ModuleDescriptionParser_DIR} /bin\" CONFIG_DIR_POST \\
169178" )
170179set (GenerateCLP_FORWARD_PATH_INSTALL " \\
171180 \" .\" , \\
172181 \" ${ITK_DIR} /bin\" , \\
173- \" ${JsonCpp_DIR} /src/lib_json \" , \\
182+ ${json_forward_path_install}
174183 \" ${ModuleDescriptionParser_DIR} /bin\" \\
175184" )
176185set (GenerateCLP_FORWARD_EXE GenerateCLP)
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ set(GenerateCLP_USE_SERIALIZER "@GenerateCLP_USE_SERIALIZER@")
1010set (TCLAP_DIR "@TCLAP_DIR@" )
1111set (ModuleDescriptionParser_DIR "@ModuleDescriptionParser_DIR@" )
1212set (ITK_DIR "@ITK_DIR_CONFIG@" )
13- set (JsonCpp_DIR "@JsonCpp_DIR@" )
13+ set (JsonCpp_INCLUDE_DIR "@JsonCpp_INCLUDE_DIR@" )
14+ set (JsonCpp_LIBRARY "@JsonCpp_LIBRARY@" )
1415set (ParameterSerializer_DIR "@ParameterSerializer_DIR@" )
1516
1617find_program (GENERATECLP_EXE
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ set(generateclp_cmake_generator "@CMAKE_GENERATOR@")
88set (GenerateCLP_BINARY_DIR "@GenerateCLP_BINARY_DIR@" )
99
1010set (GenerateCLP_USE_JSONCPP @GenerateCLP_USE_JSONCPP@)
11- set (JsonCpp_DIR "@JsonCpp_DIR@" )
11+ set (JsonCpp_INCLUDE_DIR "@JsonCpp_INCLUDE_DIR@" )
12+ set (JsonCpp_LIBRARY "@JsonCpp_LIBRARY@" )
1213
1314set (JsonCpp_CMAKE_MODULE_PATH "@SlicerExecutionModel_SOURCE_DIR@/CMake" )
1415
Original file line number Diff line number Diff line change @@ -140,7 +140,8 @@ endif()
140140set (ModuleDescriptionParser_DIR ${SlicerExecutionModel_DIR} /ModuleDescriptionParser)
141141set (GenerateCLP_DIR ${SlicerExecutionModel_DIR} /GenerateCLP)
142142set (TCLAP_DIR ${SlicerExecutionModel_DIR} /tclap)
143- set (JsonCpp_DIR "@JsonCpp_DIR@" )
143+ set (JsonCpp_INCLUDE_DIR "@JsonCpp_INCLUDE_DIR@" )
144+ set (JsonCpp_LIBRARY "@JsonCpp_LIBRARY@" )
144145set (ParameterSerializer_DIR "@ParameterSerializer_DIR@" )
145146
146147#
You can’t perform that action at this time.
0 commit comments