diff --git a/2d/CMakeLists.txt b/2d/CMakeLists.txt index 437d23fb471..e97d4adbb7a 100644 --- a/2d/CMakeLists.txt +++ b/2d/CMakeLists.txt @@ -4,7 +4,7 @@ set(SUBSYS_DEPS common filters) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS vtk) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS vtk) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/apps/3d_rec_framework/CMakeLists.txt b/apps/3d_rec_framework/CMakeLists.txt index 219c4deff89..56e4ee7a66d 100644 --- a/apps/3d_rec_framework/CMakeLists.txt +++ b/apps/3d_rec_framework/CMakeLists.txt @@ -9,7 +9,7 @@ if(${DEFAULT} STREQUAL "TRUE") endif() PCL_SUBSUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSUBSYS_NAME}" "${SUBSUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSUBSYS_DEPEND(build "${SUBSYS_NAME}" "${SUBSUBSYS_NAME}" DEPS ${SUBSUBSYS_DEPS} EXT_DEPS ${SUBSUBSYS_EXT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSUBSYS_NAME} PARENT_NAME ${SUBSYS_NAME} DEPS ${SUBSUBSYS_DEPS} EXT_DEPS ${SUBSUBSYS_EXT_DEPS}) if(NOT build) return() diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt index d352ab49beb..85ae4a2dac8 100644 --- a/apps/CMakeLists.txt +++ b/apps/CMakeLists.txt @@ -6,7 +6,7 @@ set(SUBSYS_OPT_DEPS openni vtk ${QTX}) set(DEFAULT FALSE) set(REASON "Disabled by default") PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${SUBSYS_OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${SUBSYS_OPT_DEPS}) if(NOT build) return() diff --git a/apps/cloud_composer/CMakeLists.txt b/apps/cloud_composer/CMakeLists.txt index c9223a9efbb..24196bcc274 100644 --- a/apps/cloud_composer/CMakeLists.txt +++ b/apps/cloud_composer/CMakeLists.txt @@ -23,7 +23,7 @@ if("${DEFAULT}" STREQUAL "TRUE") endif() PCL_SUBSUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSUBSYS_NAME}" "${SUBSUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSUBSYS_DEPEND(build "${SUBSYS_NAME}" "${SUBSUBSYS_NAME}" DEPS ${SUBSUBSYS_DEPS} EXT_DEPS ${SUBSUBSYS_EXT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSUBSYS_NAME} PARENT_NAME ${SUBSYS_NAME} DEPS ${SUBSUBSYS_DEPS} EXT_DEPS ${SUBSUBSYS_EXT_DEPS}) PCL_ADD_DOC(${SUBSUBSYS_NAME}) diff --git a/apps/in_hand_scanner/CMakeLists.txt b/apps/in_hand_scanner/CMakeLists.txt index 2096cbedcf3..dafe13b2135 100644 --- a/apps/in_hand_scanner/CMakeLists.txt +++ b/apps/in_hand_scanner/CMakeLists.txt @@ -12,7 +12,7 @@ if(${DEFAULT} STREQUAL "TRUE") endif() pcl_subsubsys_option(build "${SUBSYS_NAME}" "${SUBSUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -pcl_subsubsys_depend(build "${SUBSYS_NAME}" "${SUBSUBSYS_NAME}" DEPS ${SUBSYS_DEPS} EXT_DEPS ${SUBSUBSYS_EXT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSUBSYS_NAME} PARENT_NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} EXT_DEPS ${SUBSUBSYS_EXT_DEPS}) pcl_add_doc("${SUBSUBSYS_NAME}") diff --git a/apps/modeler/CMakeLists.txt b/apps/modeler/CMakeLists.txt index aa61605218b..7c621248279 100644 --- a/apps/modeler/CMakeLists.txt +++ b/apps/modeler/CMakeLists.txt @@ -19,7 +19,7 @@ if(${DEFAULT} STREQUAL "TRUE") endif() PCL_SUBSUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSUBSYS_NAME}" "${SUBSUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSUBSYS_DEPEND(build "${SUBSYS_NAME}" "${SUBSUBSYS_NAME}" DEPS ${SUBSUBSYS_DEPS} EXT_DEPS ${SUBSUBSYS_EXT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSUBSYS_NAME} PARENT_NAME ${SUBSYS_NAME} DEPS ${SUBSUBSYS_DEPS} EXT_DEPS ${SUBSUBSYS_EXT_DEPS}) PCL_ADD_DOC("${SUBSUBSYS_NAME}") diff --git a/apps/point_cloud_editor/CMakeLists.txt b/apps/point_cloud_editor/CMakeLists.txt index 4d9bccd9e36..3fddf9b9ef0 100644 --- a/apps/point_cloud_editor/CMakeLists.txt +++ b/apps/point_cloud_editor/CMakeLists.txt @@ -9,7 +9,7 @@ if(${DEFAULT} STREQUAL "TRUE") endif() PCL_SUBSUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSUBSYS_DEPEND(build "${SUBSYS_NAME}" "${SUBSUBSYS_NAME}" DEPS ${SUBSUBSYS_DEPS} EXT_DEPS ${SUBSUBSYS_EXT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSUBSYS_NAME} PARENT_NAME ${SUBSYS_NAME} DEPS ${SUBSUBSYS_DEPS} EXT_DEPS ${SUBSUBSYS_EXT_DEPS}) PCL_ADD_DOC(${SUBSUBSYS_NAME}) if(NOT build) diff --git a/benchmarks/CMakeLists.txt b/benchmarks/CMakeLists.txt index 6fccc23f74f..54fee6ba9c5 100644 --- a/benchmarks/CMakeLists.txt +++ b/benchmarks/CMakeLists.txt @@ -5,7 +5,7 @@ set(DEFAULT OFF) set(build TRUE) set(REASON "Disabled by default") PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) if(NOT build) return() endif() diff --git a/cmake/pcl_targets.cmake b/cmake/pcl_targets.cmake index 00b5715b5da..5257a76bdd2 100644 --- a/cmake/pcl_targets.cmake +++ b/cmake/pcl_targets.cmake @@ -81,18 +81,26 @@ endmacro() # they are not being built. # _var The cumulative build variable. This will be set to FALSE if the # dependencies are not met. -# _name The name of the subsystem. # ARGN The subsystems and external libraries to depend on. -macro(PCL_SUBSYS_DEPEND _var _name) +macro(PCL_SUBSYS_DEPEND _var) set(options) set(oneValueArgs) - set(multiValueArgs DEPS EXT_DEPS OPT_DEPS) + set(multiValueArgs DEPS EXT_DEPS OPT_DEPS NAME PARENT_NAME) cmake_parse_arguments(ARGS "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) if(ARGS_UNPARSED_ARGUMENTS) message(FATAL_ERROR "Unknown arguments given to PCL_SUBSYS_DEPEND: ${ARGS_UNPARSED_ARGUMENTS}") endif() + if(NOT ARGS_NAME) + message(FATAL_ERROR "PCL_SUBSYS_DEPEND requires parameter NAME!") + endif() + + set(_name ${ARGS_NAME}) + if(ARGS_PARENT_NAME) + string(PREPEND _name "${ARGS_PARENT_NAME}_") + endif() + if(ARGS_DEPS) SET_IN_GLOBAL_MAP(PCL_SUBSYS_DEPS ${_name} "${ARGS_DEPS}") endif() @@ -135,59 +143,6 @@ macro(PCL_SUBSYS_DEPEND _var _name) endif() endmacro() -############################################################################### -# Make one subsystem depend on one or more other subsystems, and disable it if -# they are not being built. -# _var The cumulative build variable. This will be set to FALSE if the -# dependencies are not met. -# _parent The parent subsystem name. -# _name The name of the subsubsystem. -# ARGN The subsystems and external libraries to depend on. -macro(PCL_SUBSUBSYS_DEPEND _var _parent _name) - set(options) - set(parentArg) - set(multiValueArgs DEPS EXT_DEPS OPT_DEPS) - cmake_parse_arguments(ARGS "${options}" "${parentArg}" "${multiValueArgs}" ${ARGN}) - - if(ARGS_UNPARSED_ARGUMENTS) - message(FATAL_ERROR "Unknown arguments given to PCL_SUBSUBSYS_DEPEND: ${ARGS_UNPARSED_ARGUMENTS}") - endif() - - if(ARGS_DEPS) - SET_IN_GLOBAL_MAP(PCL_SUBSYS_DEPS ${_parent}_${_name} "${ARGS_DEPS}") - endif() - if(ARGS_EXT_DEPS) - SET_IN_GLOBAL_MAP(PCL_SUBSYS_EXT_DEPS ${_parent}_${_name} "${ARGS_EXT_DEPS}") - endif() - if(ARGS_OPT_DEPS) - SET_IN_GLOBAL_MAP(PCL_SUBSYS_OPT_DEPS ${_parent}_${_name} "${ARGS_OPT_DEPS}") - endif() - GET_IN_MAP(subsys_status PCL_SUBSYS_HYPERSTATUS ${_parent}_${_name}) - if(${_var} AND (NOT ("${subsys_status}" STREQUAL "AUTO_OFF"))) - if(ARGS_DEPS) - foreach(_dep ${ARGS_DEPS}) - PCL_GET_SUBSYS_STATUS(_status ${_dep}) - if(NOT _status) - set(${_var} FALSE) - PCL_SET_SUBSYS_STATUS(${_parent}_${_name} FALSE "Requires ${_dep}.") - else() - PCL_GET_SUBSYS_INCLUDE_DIR(_include_dir ${_dep}) - include_directories(${PROJECT_SOURCE_DIR}/${_include_dir}/include) - endif() - endforeach() - endif() - if(ARGS_EXT_DEPS) - foreach(_dep ${ARGS_EXT_DEPS}) - string(TOUPPER "${_dep}_found" EXT_DEP_FOUND) - if(NOT ${EXT_DEP_FOUND}) - set(${_var} FALSE) - PCL_SET_SUBSYS_STATUS(${_parent}_${_name} FALSE "Requires external library ${_dep}.") - endif() - endforeach() - endif() - endif() -endmacro() - ############################################################################### # Adds version information to executable/library in form of a version.rc. This works only with MSVC. # diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 5cb766be51d..9c7067332d6 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -4,7 +4,7 @@ set(SUBSYS_DEPS) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} EXT_DEPS eigen boost) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} EXT_DEPS eigen boost) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/cuda/apps/CMakeLists.txt b/cuda/apps/CMakeLists.txt index e6e519e9c85..a8190839eb6 100644 --- a/cuda/apps/CMakeLists.txt +++ b/cuda/apps/CMakeLists.txt @@ -15,7 +15,7 @@ endif() PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") mark_as_advanced("BUILD_${SUBSYS_NAME}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) if(NOT build) return() diff --git a/cuda/common/CMakeLists.txt b/cuda/common/CMakeLists.txt index e7a2ff2a8f4..2c4c119afa0 100644 --- a/cuda/common/CMakeLists.txt +++ b/cuda/common/CMakeLists.txt @@ -6,7 +6,7 @@ set(SUBSYS_DEPS) set(build TRUE) PCL_SUBSYS_OPTION(build ${SUBSYS_NAME} ${SUBSYS_DESC} ON) mark_as_advanced("BUILD_${SUBSYS_NAME}") -PCL_SUBSYS_DEPEND(build ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_SET_SUBSYS_INCLUDE_DIR(${SUBSYS_NAME} ${SUBSYS_PATH}) ## ---[ Point Cloud Library - pcl/cuda/common diff --git a/cuda/features/CMakeLists.txt b/cuda/features/CMakeLists.txt index 3d0d1c30dfe..0932378c62d 100644 --- a/cuda/features/CMakeLists.txt +++ b/cuda/features/CMakeLists.txt @@ -8,7 +8,7 @@ set(SUBSYS_DEPS cuda_common io common) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) mark_as_advanced("BUILD_${SUBSYS_NAME}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_SET_SUBSYS_INCLUDE_DIR("${SUBSYS_NAME}" "${SUBSYS_PATH}") if(NOT build) diff --git a/cuda/io/CMakeLists.txt b/cuda/io/CMakeLists.txt index f60a472e52d..8361560bbf3 100644 --- a/cuda/io/CMakeLists.txt +++ b/cuda/io/CMakeLists.txt @@ -9,7 +9,7 @@ set(SUBSYS_EXT_DEPS openni) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" OFF) mark_as_advanced("BUILD_${SUBSYS_NAME}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} EXT_DEPS ${SUBSYS_EXT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} EXT_DEPS ${SUBSYS_EXT_DEPS}) PCL_SET_SUBSYS_INCLUDE_DIR("${SUBSYS_NAME}" "${SUBSYS_PATH}") if(NOT build) diff --git a/cuda/sample_consensus/CMakeLists.txt b/cuda/sample_consensus/CMakeLists.txt index e5a19821d05..42cdc30c875 100644 --- a/cuda/sample_consensus/CMakeLists.txt +++ b/cuda/sample_consensus/CMakeLists.txt @@ -8,7 +8,7 @@ set(SUBSYS_DEPS cuda_common io common) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) mark_as_advanced("BUILD_${SUBSYS_NAME}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_SET_SUBSYS_INCLUDE_DIR("${SUBSYS_NAME}" "${SUBSYS_PATH}") if(NOT build) diff --git a/cuda/segmentation/CMakeLists.txt b/cuda/segmentation/CMakeLists.txt index 3fd239870ee..b96cf182e5c 100644 --- a/cuda/segmentation/CMakeLists.txt +++ b/cuda/segmentation/CMakeLists.txt @@ -8,7 +8,7 @@ set(SUBSYS_DEPS cuda_common io common) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) mark_as_advanced("BUILD_${SUBSYS_NAME}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_SET_SUBSYS_INCLUDE_DIR("${SUBSYS_NAME}" "${SUBSYS_PATH}") diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 00524147084..d89aa99bc11 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -5,7 +5,7 @@ set(SUBSYS_DEPS common io features search kdtree octree filters keypoints segmen set(DEFAULT FALSE) set(REASON "Code examples are disabled by default.") PCL_SUBSYS_OPTION(build ${SUBSYS_NAME} ${SUBSYS_DESC} ${DEFAULT} ${REASON}) -PCL_SUBSYS_DEPEND(build ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) if(NOT build) return() diff --git a/examples/geometry/CMakeLists.txt b/examples/geometry/CMakeLists.txt index 3b3aa5185b8..271296c6819 100644 --- a/examples/geometry/CMakeLists.txt +++ b/examples/geometry/CMakeLists.txt @@ -2,5 +2,5 @@ if(NOT BUILD_geometry) return() endif() -PCL_SUBSYS_DEPEND(build ${SUBSYS_NAME} DEPS geometry) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS geometry) PCL_ADD_EXAMPLE(pcl_example_half_edge_mesh FILES example_half_edge_mesh.cpp LINK_WITH pcl_common) diff --git a/examples/keypoints/CMakeLists.txt b/examples/keypoints/CMakeLists.txt index 9bc3bc3be83..b558b407287 100644 --- a/examples/keypoints/CMakeLists.txt +++ b/examples/keypoints/CMakeLists.txt @@ -2,7 +2,7 @@ if(NOT BUILD_visualization) return() endif() -PCL_SUBSYS_DEPEND(build ${SUBSYS_NAME} DEPS visualization) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS visualization) ## Find VTK if(NOT VTK_FOUND) diff --git a/examples/outofcore/CMakeLists.txt b/examples/outofcore/CMakeLists.txt index 6c624f0e9fb..4bfa04f34d3 100644 --- a/examples/outofcore/CMakeLists.txt +++ b/examples/outofcore/CMakeLists.txt @@ -11,6 +11,6 @@ else() set(REASON) endif() -PCL_SUBSYS_DEPEND (build ${SUBSYS_NAME} DEPS outofcore io common octree filters visualization EXT_DEPS vtk) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS outofcore io common octree filters visualization EXT_DEPS vtk) PCL_ADD_EXAMPLE (pcl_example_outofcore_with_lod FILES example_outofcore_with_lod.cpp LINK_WITH pcl_outofcore pcl_common pcl_io pcl_octree pcl_filters) PCL_ADD_EXAMPLE (pcl_example_outofcore FILES example_outofcore.cpp LINK_WITH pcl_outofcore pcl_common pcl_io pcl_octree pcl_filters) diff --git a/examples/segmentation/CMakeLists.txt b/examples/segmentation/CMakeLists.txt index b788c4c6fa3..fb444a76ac2 100644 --- a/examples/segmentation/CMakeLists.txt +++ b/examples/segmentation/CMakeLists.txt @@ -2,7 +2,7 @@ if(NOT BUILD_visualization) return() endif() -PCL_SUBSYS_DEPEND(build ${SUBSYS_NAME} DEPS visualization segmentation) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS visualization segmentation) PCL_ADD_EXAMPLE(pcl_example_extract_clusters_normals FILES example_extract_clusters_normals.cpp LINK_WITH pcl_common pcl_keypoints pcl_io pcl_segmentation) diff --git a/examples/stereo/CMakeLists.txt b/examples/stereo/CMakeLists.txt index 1f64b1cf09d..08ccc219ac0 100644 --- a/examples/stereo/CMakeLists.txt +++ b/examples/stereo/CMakeLists.txt @@ -2,7 +2,7 @@ if(NOT BUILD_visualization) return() endif() -PCL_SUBSYS_DEPEND(build ${SUBSYS_NAME} DEPS visualization) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS visualization) ## Find VTK if(NOT VTK_FOUND) diff --git a/examples/surface/CMakeLists.txt b/examples/surface/CMakeLists.txt index 0cc5d7d2776..eeb72ca4e70 100644 --- a/examples/surface/CMakeLists.txt +++ b/examples/surface/CMakeLists.txt @@ -2,7 +2,7 @@ if(NOT (BUILD_surface_on_nurbs AND BUILD_visualization)) return() endif() -PCL_SUBSYS_DEPEND(build ${SUBSYS_NAME} DEPS visualization geometry surface) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS visualization geometry surface) ## Find VTK if(NOT VTK_FOUND) diff --git a/features/CMakeLists.txt b/features/CMakeLists.txt index bbc5d5cfc42..e04bdab7276 100644 --- a/features/CMakeLists.txt +++ b/features/CMakeLists.txt @@ -4,7 +4,7 @@ set(SUBSYS_DEPS common search kdtree octree filters 2d) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/filters/CMakeLists.txt b/filters/CMakeLists.txt index bb91d7bb179..852c9059897 100644 --- a/filters/CMakeLists.txt +++ b/filters/CMakeLists.txt @@ -4,7 +4,7 @@ set(SUBSYS_DEPS common sample_consensus search kdtree octree) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/geometry/CMakeLists.txt b/geometry/CMakeLists.txt index fc040b1ad7b..cafc32e43bb 100644 --- a/geometry/CMakeLists.txt +++ b/geometry/CMakeLists.txt @@ -4,7 +4,7 @@ set(SUBSYS_DEPS common) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/gpu/containers/CMakeLists.txt b/gpu/containers/CMakeLists.txt index b0ff9474c12..74384d5b579 100644 --- a/gpu/containers/CMakeLists.txt +++ b/gpu/containers/CMakeLists.txt @@ -5,7 +5,7 @@ set(SUBSYS_DEPS common) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_SET_SUBSYS_INCLUDE_DIR("${SUBSYS_NAME}" "${SUBSYS_PATH}") mark_as_advanced("BUILD_${SUBSYS_NAME}") diff --git a/gpu/features/CMakeLists.txt b/gpu/features/CMakeLists.txt index eb51748c32a..2d2954fe7fa 100644 --- a/gpu/features/CMakeLists.txt +++ b/gpu/features/CMakeLists.txt @@ -5,7 +5,7 @@ set(SUBSYS_DEPS common gpu_containers gpu_utils gpu_octree geometry) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_SET_SUBSYS_INCLUDE_DIR("${SUBSYS_NAME}" "${SUBSYS_PATH}") mark_as_advanced("BUILD_${SUBSYS_NAME}") diff --git a/gpu/kinfu/CMakeLists.txt b/gpu/kinfu/CMakeLists.txt index 9b86018b836..29cb73e955a 100644 --- a/gpu/kinfu/CMakeLists.txt +++ b/gpu/kinfu/CMakeLists.txt @@ -5,7 +5,7 @@ set(SUBSYS_DEPS common io gpu_containers geometry search) set(DEFAULT TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_SET_SUBSYS_INCLUDE_DIR("${SUBSYS_NAME}" "${SUBSYS_PATH}") mark_as_advanced("BUILD_${SUBSYS_NAME}") diff --git a/gpu/kinfu/tools/CMakeLists.txt b/gpu/kinfu/tools/CMakeLists.txt index 8866309431e..e1593b38001 100644 --- a/gpu/kinfu/tools/CMakeLists.txt +++ b/gpu/kinfu/tools/CMakeLists.txt @@ -7,7 +7,7 @@ set(DEFAULT TRUE) set(REASON "") PCL_SUBSUBSYS_OPTION(build ${SUBSYS_NAME} ${SUBSUBSYS_NAME} ${SUBSUBSYS_DESC} ${DEFAULT} ${REASON}) -PCL_SUBSUBSYS_DEPEND(build ${SUBSYS_NAME} ${SUBSUBSYS_NAME} DEPS ${SUBSUBSYS_DEPS} OPT_DEPS ${SUBSUBSYS_OPT_DEPS} EXT_DEPS ${EXT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSUBSYS_NAME} PARENT_NAME ${SUBSYS_NAME} DEPS ${SUBSUBSYS_DEPS} OPT_DEPS ${SUBSUBSYS_OPT_DEPS} EXT_DEPS ${EXT_DEPS}) if(NOT build) return() diff --git a/gpu/kinfu_large_scale/CMakeLists.txt b/gpu/kinfu_large_scale/CMakeLists.txt index f0db371bfed..d7efc4ad5aa 100644 --- a/gpu/kinfu_large_scale/CMakeLists.txt +++ b/gpu/kinfu_large_scale/CMakeLists.txt @@ -5,7 +5,7 @@ set(SUBSYS_DEPS common io gpu_containers gpu_utils geometry search octree filter set(DEFAULT TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_SET_SUBSYS_INCLUDE_DIR("${SUBSYS_NAME}" "${SUBSYS_PATH}") mark_as_advanced("BUILD_${SUBSYS_NAME}") diff --git a/gpu/kinfu_large_scale/tools/CMakeLists.txt b/gpu/kinfu_large_scale/tools/CMakeLists.txt index adbb6ec3c68..d8d654721bd 100644 --- a/gpu/kinfu_large_scale/tools/CMakeLists.txt +++ b/gpu/kinfu_large_scale/tools/CMakeLists.txt @@ -7,7 +7,7 @@ set(DEFAULT TRUE) set(REASON "") PCL_SUBSUBSYS_OPTION(build ${SUBSYS_NAME} ${SUBSUBSYS_NAME} ${SUBSUBSYS_DESC} ${DEFAULT} ${REASON}) -PCL_SUBSUBSYS_DEPEND(build ${SUBSYS_NAME} ${SUBSUBSYS_NAME} DEPS ${SUBSUBSYS_DEPS} OPT_DEPS ${SUBSUBSYS_OPT_DEPS} EXT_DEPS ${EXT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSUBSYS_NAME} PARENT_NAME ${SUBSYS_NAME} DEPS ${SUBSUBSYS_DEPS} OPT_DEPS ${SUBSUBSYS_OPT_DEPS} EXT_DEPS ${EXT_DEPS}) if(NOT build) return() diff --git a/gpu/octree/CMakeLists.txt b/gpu/octree/CMakeLists.txt index 6d959ba02f0..8477bb75ea3 100644 --- a/gpu/octree/CMakeLists.txt +++ b/gpu/octree/CMakeLists.txt @@ -6,7 +6,7 @@ set(SUBSYS_DEPS common gpu_containers gpu_utils) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) mark_as_advanced("BUILD_${SUBSYS_NAME}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_SET_SUBSYS_INCLUDE_DIR("${SUBSYS_NAME}" "${SUBSYS_PATH}") if(NOT build) diff --git a/gpu/people/CMakeLists.txt b/gpu/people/CMakeLists.txt index 5f078daa3ee..a3404263569 100644 --- a/gpu/people/CMakeLists.txt +++ b/gpu/people/CMakeLists.txt @@ -5,7 +5,7 @@ set(SUBSYS_DEPS common features filters geometry gpu_containers gpu_utils io kdt set(build FALSE) PCL_SUBSYS_OPTION(build ${SUBSYS_NAME} ${SUBSYS_DESC} OFF) -PCL_SUBSYS_DEPEND(build ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) mark_as_advanced("BUILD_${SUBSYS_NAME}") PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/gpu/segmentation/CMakeLists.txt b/gpu/segmentation/CMakeLists.txt index 9a99a620367..0c1838ec94b 100644 --- a/gpu/segmentation/CMakeLists.txt +++ b/gpu/segmentation/CMakeLists.txt @@ -5,7 +5,7 @@ set(SUBSYS_DEPS common gpu_containers gpu_utils gpu_octree) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_SET_SUBSYS_INCLUDE_DIR("${SUBSYS_NAME}" "${SUBSYS_PATH}") mark_as_advanced("BUILD_${SUBSYS_NAME}") diff --git a/gpu/surface/CMakeLists.txt b/gpu/surface/CMakeLists.txt index c53b2255604..6970f0e8cc6 100644 --- a/gpu/surface/CMakeLists.txt +++ b/gpu/surface/CMakeLists.txt @@ -5,7 +5,7 @@ set(SUBSYS_DEPS common gpu_containers gpu_utils geometry) set(build FALSE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" OFF) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_SET_SUBSYS_INCLUDE_DIR("${SUBSYS_NAME}" "${SUBSYS_PATH}") mark_as_advanced("BUILD_${SUBSYS_NAME}") diff --git a/gpu/tracking/CMakeLists.txt b/gpu/tracking/CMakeLists.txt index a79c5a013e5..e464a9e8e26 100644 --- a/gpu/tracking/CMakeLists.txt +++ b/gpu/tracking/CMakeLists.txt @@ -5,7 +5,7 @@ set(SUBSYS_DEPS common gpu_containers gpu_utils gpu_octree tracking search kdtre set(build FALSE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" OFF) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_SET_SUBSYS_INCLUDE_DIR("${SUBSYS_NAME}" "${SUBSYS_PATH}") mark_as_advanced("BUILD_${SUBSYS_NAME}") diff --git a/gpu/utils/CMakeLists.txt b/gpu/utils/CMakeLists.txt index 83cd8e753e0..8775067ccff 100644 --- a/gpu/utils/CMakeLists.txt +++ b/gpu/utils/CMakeLists.txt @@ -5,7 +5,7 @@ set(SUBSYS_DEPS common gpu_containers) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_SET_SUBSYS_INCLUDE_DIR("${SUBSYS_NAME}" "${SUBSYS_PATH}") mark_as_advanced("BUILD_${SUBSYS_NAME}") diff --git a/io/CMakeLists.txt b/io/CMakeLists.txt index 190e32e64c5..9040f438a2b 100644 --- a/io/CMakeLists.txt +++ b/io/CMakeLists.txt @@ -6,9 +6,9 @@ set(SUBSYS_EXT_DEPS boost eigen) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) if(WIN32) - PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS openni openni2 ensenso davidSDK dssdk rssdk rssdk2 pcap png vtk EXT_DEPS ${SUBSYS_EXT_DEPS}) + PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS openni openni2 ensenso davidSDK dssdk rssdk rssdk2 pcap png vtk EXT_DEPS ${SUBSYS_EXT_DEPS}) else() - PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS openni openni2 ensenso davidSDK dssdk pcap png vtk libusb EXT_DEPS ${SUBSYS_EXT_DEPS}) + PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS openni openni2 ensenso davidSDK dssdk pcap png vtk libusb EXT_DEPS ${SUBSYS_EXT_DEPS}) endif() PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/kdtree/CMakeLists.txt b/kdtree/CMakeLists.txt index a5a0fb9b8ec..d9c94bbe45b 100644 --- a/kdtree/CMakeLists.txt +++ b/kdtree/CMakeLists.txt @@ -4,7 +4,7 @@ set(SUBSYS_DEPS common) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} EXT_DEPS flann) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} EXT_DEPS flann) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/keypoints/CMakeLists.txt b/keypoints/CMakeLists.txt index 080d56e46b0..92180e4062a 100644 --- a/keypoints/CMakeLists.txt +++ b/keypoints/CMakeLists.txt @@ -4,7 +4,7 @@ set(SUBSYS_DEPS common search kdtree octree features filters) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/ml/CMakeLists.txt b/ml/CMakeLists.txt index 8870a42e069..98209bea91e 100644 --- a/ml/CMakeLists.txt +++ b/ml/CMakeLists.txt @@ -4,7 +4,7 @@ set(SUBSYS_DEPS common) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/octree/CMakeLists.txt b/octree/CMakeLists.txt index d33c65f5fa7..b5c58434fe8 100644 --- a/octree/CMakeLists.txt +++ b/octree/CMakeLists.txt @@ -4,7 +4,7 @@ set(SUBSYS_DEPS common) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/outofcore/CMakeLists.txt b/outofcore/CMakeLists.txt index 7d8073c2547..98ad8379be8 100644 --- a/outofcore/CMakeLists.txt +++ b/outofcore/CMakeLists.txt @@ -4,7 +4,7 @@ set(SUBSYS_DEPS common io filters octree visualization) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/people/CMakeLists.txt b/people/CMakeLists.txt index dc7b449c1b2..dca32d662be 100644 --- a/people/CMakeLists.txt +++ b/people/CMakeLists.txt @@ -13,7 +13,7 @@ endif() set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/recognition/CMakeLists.txt b/recognition/CMakeLists.txt index 7e9386e7cd9..84158dc605f 100644 --- a/recognition/CMakeLists.txt +++ b/recognition/CMakeLists.txt @@ -4,7 +4,7 @@ set(SUBSYS_DEPS common io search kdtree octree features filters registration sam set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/registration/CMakeLists.txt b/registration/CMakeLists.txt index a207127dbe4..a8c137e9f3f 100644 --- a/registration/CMakeLists.txt +++ b/registration/CMakeLists.txt @@ -4,7 +4,7 @@ set(SUBSYS_DEPS common octree kdtree search sample_consensus features filters) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/sample_consensus/CMakeLists.txt b/sample_consensus/CMakeLists.txt index 18761e8a5d0..e027631f2df 100644 --- a/sample_consensus/CMakeLists.txt +++ b/sample_consensus/CMakeLists.txt @@ -4,7 +4,7 @@ set(SUBSYS_DEPS common search) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/search/CMakeLists.txt b/search/CMakeLists.txt index 46f463208a2..0b93e5255c2 100644 --- a/search/CMakeLists.txt +++ b/search/CMakeLists.txt @@ -4,7 +4,7 @@ set(SUBSYS_DEPS common kdtree octree) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} EXT_DEPS flann) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} EXT_DEPS flann) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/segmentation/CMakeLists.txt b/segmentation/CMakeLists.txt index b8db7cde12e..89bea126d82 100644 --- a/segmentation/CMakeLists.txt +++ b/segmentation/CMakeLists.txt @@ -4,7 +4,7 @@ set(SUBSYS_DEPS common geometry search sample_consensus kdtree octree features f set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/simulation/CMakeLists.txt b/simulation/CMakeLists.txt index 827c366a12e..22bb8207b71 100644 --- a/simulation/CMakeLists.txt +++ b/simulation/CMakeLists.txt @@ -8,7 +8,7 @@ find_package(OpenGL) find_package(GLEW) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" OFF) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} EXT_DEPS opengl glew) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} EXT_DEPS opengl glew) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/stereo/CMakeLists.txt b/stereo/CMakeLists.txt index 1a49baf6a38..c8973635d95 100644 --- a/stereo/CMakeLists.txt +++ b/stereo/CMakeLists.txt @@ -4,7 +4,7 @@ set(SUBSYS_DEPS common io) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/surface/CMakeLists.txt b/surface/CMakeLists.txt index cfff3714a6b..c29105e6a67 100644 --- a/surface/CMakeLists.txt +++ b/surface/CMakeLists.txt @@ -4,7 +4,7 @@ set(SUBSYS_DEPS common search kdtree octree) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS qhull vtk) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS qhull vtk) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/test/2d/CMakeLists.txt b/test/2d/CMakeLists.txt index c1d8c2ac915..4e74c0f511d 100644 --- a/test/2d/CMakeLists.txt +++ b/test/2d/CMakeLists.txt @@ -7,7 +7,7 @@ set(OPT_DEPS) set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT build) return() diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index cb7f77530de..555b4c7969d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -5,7 +5,7 @@ set(DEFAULT OFF) set(build TRUE) set(REASON "Disabled by default") PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT build) return() diff --git a/test/common/CMakeLists.txt b/test/common/CMakeLists.txt index 76d24436197..a4ef890c3d5 100644 --- a/test/common/CMakeLists.txt +++ b/test/common/CMakeLists.txt @@ -6,7 +6,7 @@ set(OPT_DEPS io search kdtree octree) set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT build) return() diff --git a/test/features/CMakeLists.txt b/test/features/CMakeLists.txt index d89d80c1cc0..4dbab6e8bc2 100644 --- a/test/features/CMakeLists.txt +++ b/test/features/CMakeLists.txt @@ -6,7 +6,7 @@ set(OPT_DEPS io keypoints) # module does not depend on these set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT build) return() diff --git a/test/filters/CMakeLists.txt b/test/filters/CMakeLists.txt index 1cbb324938b..2f2b4bdaa16 100644 --- a/test/filters/CMakeLists.txt +++ b/test/filters/CMakeLists.txt @@ -6,7 +6,7 @@ set(OPT_DEPS io features segmentation) set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT build) return() diff --git a/test/geometry/CMakeLists.txt b/test/geometry/CMakeLists.txt index 02bc1ed8ce1..4b9f788c8da 100644 --- a/test/geometry/CMakeLists.txt +++ b/test/geometry/CMakeLists.txt @@ -5,7 +5,7 @@ PCL_SET_TEST_DEPENDENCIES(SUBSYS_DEPS geometry) set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT build) return() diff --git a/test/gpu/octree/CMakeLists.txt b/test/gpu/octree/CMakeLists.txt index d5931f1b254..0c0ead83fb2 100644 --- a/test/gpu/octree/CMakeLists.txt +++ b/test/gpu/octree/CMakeLists.txt @@ -6,7 +6,7 @@ set(DEFAULT ON) set(build TRUE) set(REASON "") PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT build) return() diff --git a/test/io/CMakeLists.txt b/test/io/CMakeLists.txt index 4283d62d8de..82fe839e492 100644 --- a/test/io/CMakeLists.txt +++ b/test/io/CMakeLists.txt @@ -6,7 +6,7 @@ set(OPT_DEPS visualization) set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT build) return() diff --git a/test/kdtree/CMakeLists.txt b/test/kdtree/CMakeLists.txt index b8391022d77..e88a4a346b5 100644 --- a/test/kdtree/CMakeLists.txt +++ b/test/kdtree/CMakeLists.txt @@ -6,7 +6,7 @@ set(OPT_DEPS io) # io is not a mandatory dependency in kdtree set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT (build AND BUILD_io)) return() diff --git a/test/keypoints/CMakeLists.txt b/test/keypoints/CMakeLists.txt index 2cb8b42c44f..a8a3498da48 100644 --- a/test/keypoints/CMakeLists.txt +++ b/test/keypoints/CMakeLists.txt @@ -6,7 +6,7 @@ set(OPT_DEPS io) # module does not depend on these set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT (build AND BUILD_io)) return() diff --git a/test/ml/CMakeLists.txt b/test/ml/CMakeLists.txt index 0cef1218b48..c345583489e 100644 --- a/test/ml/CMakeLists.txt +++ b/test/ml/CMakeLists.txt @@ -5,7 +5,7 @@ PCL_SET_TEST_DEPENDENCIES(SUBSYS_DEPS ml) set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT build) return() diff --git a/test/octree/CMakeLists.txt b/test/octree/CMakeLists.txt index 65599bdf5d7..7c71c702ba0 100644 --- a/test/octree/CMakeLists.txt +++ b/test/octree/CMakeLists.txt @@ -5,7 +5,7 @@ PCL_SET_TEST_DEPENDENCIES(SUBSYS_DEPS octree) set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT build) return() diff --git a/test/outofcore/CMakeLists.txt b/test/outofcore/CMakeLists.txt index 4c0504d02cb..e4b4b449177 100644 --- a/test/outofcore/CMakeLists.txt +++ b/test/outofcore/CMakeLists.txt @@ -6,7 +6,7 @@ set(OPT_DEPS) # module does not depend on these set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT build) return() diff --git a/test/people/CMakeLists.txt b/test/people/CMakeLists.txt index a96a8e391b1..4dc04fe0e87 100644 --- a/test/people/CMakeLists.txt +++ b/test/people/CMakeLists.txt @@ -6,7 +6,7 @@ set(OPT_DEPS) # module does not depend on these set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT build) return() diff --git a/test/recognition/CMakeLists.txt b/test/recognition/CMakeLists.txt index d7c68afcccc..06dc86c9503 100644 --- a/test/recognition/CMakeLists.txt +++ b/test/recognition/CMakeLists.txt @@ -6,7 +6,7 @@ set(OPT_DEPS keypoints) # module does not depend on these set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT build) return() diff --git a/test/registration/CMakeLists.txt b/test/registration/CMakeLists.txt index 760e07f283a..db199f02cbc 100644 --- a/test/registration/CMakeLists.txt +++ b/test/registration/CMakeLists.txt @@ -6,7 +6,7 @@ set(OPT_DEPS io) # module does not depend on these set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT build) return() diff --git a/test/sample_consensus/CMakeLists.txt b/test/sample_consensus/CMakeLists.txt index 455d5d54d15..7656f9bf4aa 100644 --- a/test/sample_consensus/CMakeLists.txt +++ b/test/sample_consensus/CMakeLists.txt @@ -6,7 +6,7 @@ set(OPT_DEPS io) set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT build) return() diff --git a/test/search/CMakeLists.txt b/test/search/CMakeLists.txt index 74248023a5c..be1e13814c4 100644 --- a/test/search/CMakeLists.txt +++ b/test/search/CMakeLists.txt @@ -6,7 +6,7 @@ set(OPT_DEPS io) set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT build) return() diff --git a/test/segmentation/CMakeLists.txt b/test/segmentation/CMakeLists.txt index a4d9b27db74..32dca586313 100644 --- a/test/segmentation/CMakeLists.txt +++ b/test/segmentation/CMakeLists.txt @@ -6,7 +6,7 @@ set(OPT_DEPS) # module does not depend on these set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT build) return() diff --git a/test/surface/CMakeLists.txt b/test/surface/CMakeLists.txt index 66e3220e60c..3abd8c60fbc 100644 --- a/test/surface/CMakeLists.txt +++ b/test/surface/CMakeLists.txt @@ -6,7 +6,7 @@ set(OPT_DEPS io features sample_consensus filters) # module does not depend on t set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT (build AND BUILD_io AND BUILD_features)) return() diff --git a/test/visualization/CMakeLists.txt b/test/visualization/CMakeLists.txt index cb9d3d480b9..c02630ecdb2 100644 --- a/test/visualization/CMakeLists.txt +++ b/test/visualization/CMakeLists.txt @@ -6,7 +6,7 @@ set(OPT_DEPS features) # module does not depend on these set(DEFAULT ON) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS}) if(NOT build) return() diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 7f61854aee0..8a72fdaa2cc 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -6,7 +6,7 @@ set(DEFAULT ON) set(REASON "") PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${SUBSYS_OPT_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${SUBSYS_OPT_DEPS}) if(NOT build) return() diff --git a/tracking/CMakeLists.txt b/tracking/CMakeLists.txt index dd303eabc63..c0af2795316 100644 --- a/tracking/CMakeLists.txt +++ b/tracking/CMakeLists.txt @@ -4,7 +4,7 @@ set(SUBSYS_DEPS common search kdtree filters octree) set(build TRUE) PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON) -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS}) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS}) PCL_ADD_DOC("${SUBSYS_NAME}") diff --git a/visualization/CMakeLists.txt b/visualization/CMakeLists.txt index 4c0c4d21557..70823eea55c 100644 --- a/visualization/CMakeLists.txt +++ b/visualization/CMakeLists.txt @@ -12,7 +12,7 @@ else() endif() PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}") -PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} EXT_DEPS vtk OPT_DEPS openni openni2 ensenso davidSDK dssdk rssdk) +PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} EXT_DEPS vtk OPT_DEPS openni openni2 ensenso davidSDK dssdk rssdk) if(ANDROID) set(build FALSE)