Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions cpprevolve/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ set(LIMBO_DIR ../thirdparty/limbo)
set(LIMBO_DEFINES USE_NLOPT)
include_directories(${LIMBO_DIR}/src)

# Find galgo library for EA
set(GALGO_DIR ../thirdparty/galgo)
include_directories(${GALGO_DIR})

# Find GSL - GNU Scientific Library
find_package(GSL REQUIRED)
include_directories(${GSL_INCLUDE_DIRS})
Expand All @@ -87,16 +91,24 @@ include_directories(${YAML_CPP_INCLUDE_DIR})
# Find Gazebo
# LOCAL_GAZEBO_DIR can be set to a path with a gazebo-config.cmake
if (LOCAL_GAZEBO_DIR)
find_package(gazebo 9 REQUIRED CONFIG
find_package(gazebo 10 REQUIRED CONFIG
PATHS "${LOCAL_GAZEBO_DIR}"
NO_DEFAULT_PATH)
message(WARNING "Using local Gazebo @ ${gazebo_DIR}")
else()
find_package(gazebo 9 REQUIRED)
find_package(gazebo 10 REQUIRED)
endif()
include_directories(${GAZEBO_INCLUDE_DIRS})
link_directories(${GAZEBO_LIBRARY_DIRS})

pkg_check_modules(libavcodec libavcodec)
if (NOT libavcodec_FOUND)
BUILD_WARNING("libavcodec not found")
else()
include_directories(${libavcodec_INCLUDE_DIRS})
link_directories(${libavcodec_LIBRARY_DIRS})
endif ()

# Find Protobuf
# TODO: This part is currently a mess, and it should be handeled better
find_package(Protobuf REQUIRED)
Expand Down
Loading