Skip to content

Commit

Permalink
Move find_package() calls to root list file
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Jun 22, 2018
1 parent 1ad52eb commit 1b6957d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,19 @@ endif()
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake
${CMAKE_SOURCE_DIR}/cmake/find-modules)

# Search for project's hard dependencies.
# Hard dependencies.
find_package(YCM 0.8 REQUIRED)

# https://github.com/roboticslab-uc3m/questions-and-answers/issues/65
find_package(YARP 3.0 QUIET COMPONENTS OS dev)
if(NOT YARP_FOUND)
find_package(YARP 2.3.70 REQUIRED)
endif()

find_package(COLOR_DEBUG REQUIRED)

# Soft dependencies.
find_package(LibSerial 0.6 QUIET)
find_package(wiringPi QUIET)

# Always build YARP devices as MODULE libraries.
set(YARP_FORCE_DYNAMIC_PLUGINS TRUE CACHE INTERNAL "Force dynamic plugins")

Expand Down
2 changes: 0 additions & 2 deletions libraries/YarpPlugins/EcroPwmController/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# CopyPolicy: released under the terms of the LGPLv2.1, see LICENSE at project root.
# URL: https://github.com/asrob-uc3m/yarp-devices

find_package(LibSerial 0.6 QUIET)

if(NOT LibSerial_FOUND AND (NOT DEFINED ENABLE_EcroPwmController OR ENABLE_EcroPwmController))
message(WARNING "LibSerial package not found, disabling EcroPwmController device")
endif()
Expand Down
2 changes: 0 additions & 2 deletions libraries/YarpPlugins/EcroWheelController/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# CopyPolicy: released under the terms of the LGPLv2.1, see LICENSE at project root.
# URL: https://github.com/asrob-uc3m/yarp-devices

find_package(LibSerial 0.6 QUIET)

if(NOT LibSerial_FOUND AND (NOT DEFINED ENABLE_EcroWheelController OR ENABLE_EcroWheelController))
message(WARNING "LibSerial package not found, disabling EcroWheelController device")
endif()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# CopyPolicy: released under the terms of the LGPLv2.1, see LICENSE at project root.
# URL: https://github.com/asrob-uc3m/yarp-devices

find_package(LibSerial 0.6 QUIET)

if(NOT LibSerial_FOUND AND (NOT DEFINED ENABLE_LaserTowerOfDeathController OR ENABLE_LaserTowerOfDeathController))
message(WARNING "LibSerial package not found, disabling LaserTowerOfDeathController device")
endif()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# CopyPolicy: released under the terms of the LGPLv2.1, see LICENSE at project root.
# URL: https://github.com/asrob-uc3m/yarp-devices

find_package(wiringPi QUIET)

if(NOT wiringPi_FOUND AND (NOT DEFINED ENABLE_RaspiTwoPwmMotorController OR ENABLE_RaspiTwoPwmMotorController))
message(WARNING "wiringPi package not found, disabling RaspiTwoPwmMotorController device")
endif()
Expand Down

0 comments on commit 1b6957d

Please sign in to comment.