-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
34 lines (28 loc) · 941 Bytes
/
CMakeLists.txt
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
31
32
33
cmake_minimum_required(VERSION 3.2)
project(walter)
set(CMAKE_CXX_COMPILER "g++")
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
option(BUILD_DOC "Build documentation" ON)
find_package(Doxygen)
if (DOXYGEN_FOUND)
add_custom_target( doc_doxygen ALL
COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating API documentation with Doxygen"
VERBATIM )
else()
message("Doxygen not found.")
endif()
include(./build/conanbuildinfo.cmake)
conan_basic_setup()
include_directories("unitree_legged_sdk/include")
link_directories("unitree_legged_sdk/lib")
set(CMAKE_CXX_FLAGS "-fPIC")
add_executable(walter src/main.cpp src/bot.cpp)
if (TESTING)
target_link_libraries(walter libunitree_legged_sdk_amd64.so lcm ${CONAN_LIBS})
else()
target_link_libraries(walter libunitree_legged_sdk_arm64.so lcm ${CONAN_LIBS})
endif()