Skip to content

Commit

Permalink
Disable voxelOccupancyDetection by default, request C compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Jul 19, 2024
1 parent 64d59fd commit ca77353
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.16)

project(ROBOTICSLAB_VISION LANGUAGES CXX)
# 'C' required by prograns/voxelOccupancyDetection in Ubuntu 24.04
# see https://github.com/roboticslab-uc3m/vision/issues/106
project(ROBOTICSLAB_VISION LANGUAGES C CXX)

# Set CMake policies.
if(POLICY CMP0127)
Expand Down
3 changes: 0 additions & 3 deletions programs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Copyright: Universidad Carlos III de Madrid (C) 2015
# Authors: Juan G. Victores

#add_subdirectory(pointAtObjectServer) # see https://github.com/roboticslab-uc3m/vision/issues/106
add_subdirectory(sceneReconstruction)
add_subdirectory(rgbDetection)
Expand Down
1 change: 0 additions & 1 deletion programs/sceneReconstruction/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ cmake_dependent_option(ENABLE_sceneReconstruction "Enable/disable sceneReconstru

if(ENABLE_sceneReconstruction)

# sceneReconstruction
add_executable(sceneReconstruction main.cpp
SceneReconstruction.hpp
SceneReconstruction.cpp
Expand Down
23 changes: 12 additions & 11 deletions programs/voxelOccupancyDetection/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
option(ENABLE_voxelOccupancyDetection "Enable/disable voxelOccupancyDetection program" ON)
# disabled, see https://github.com/roboticslab-uc3m/vision/issues/106
option(ENABLE_voxelOccupancyDetection "Enable/disable voxelOccupancyDetection program" OFF)

if(ENABLE_voxelOccupancyDetection)

add_executable(voxelOccupancyDetection main.cpp
VoxelOccupancyDetection.hpp
VoxelOccupancyDetection.cpp
SegmentorThread.hpp
SegmentorThread.cpp)
add_executable(voxelOccupancyDetection main.cpp
VoxelOccupancyDetection.hpp
VoxelOccupancyDetection.cpp
SegmentorThread.hpp
SegmentorThread.cpp)

target_link_libraries(voxelOccupancyDetection YARP::YARP_os
YARP::YARP_init
YARP::YARP_dev
YARP::YARP_sig)
target_link_libraries(voxelOccupancyDetection YARP::YARP_os
YARP::YARP_init
YARP::YARP_dev
YARP::YARP_sig)

install(TARGETS voxelOccupancyDetection)
install(TARGETS voxelOccupancyDetection)

endif()

0 comments on commit ca77353

Please sign in to comment.