-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
30 lines (23 loc) · 946 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
30 lines (23 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright (c) 2026 Robotics and AI Institute LLC dba RAI Institute. All rights reserved.
cmake_minimum_required(VERSION 3.23)
project(loopback_controller_example LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Set the configuration directory for the exploy package.
# By default, set it to the build directory.
set(exploy_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../build/control"
CACHE PATH "Path to the exploy package configuration directory")
message(STATUS "Using exploy package configuration from: ${exploy_DIR}")
find_package(exploy REQUIRED CONFIG)
add_executable(loopback_controller_example
main.cpp
)
target_include_directories(loopback_controller_example PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
)
target_link_libraries(loopback_controller_example PRIVATE
exploy::exploy
)
target_compile_options(loopback_controller_example PRIVATE
-Wall -Wextra -Wunused-variable -Wunused-parameter
)