Skip to content

Commit

Permalink
Merge pull request #154 from olivier-stasse/odri-master
Browse files Browse the repository at this point in the history
Add stdexcept as an include in example.cpp Fix https://github.com/ope…
  • Loading branch information
thomasfla authored Apr 2, 2024
2 parents 09961b0 + 9571ca2 commit fe81d11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
13 changes: 5 additions & 8 deletions sdk/master_board_sdk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ if(APPLE)
CACHE BOOL "Build the python binding")
endif()


option(BUILD_PYTHON_INTERFACE "Build the python binding" ON)
option(PYTHON_STANDARD_LAYOUT "Enable standard Python package layout" ON)
option(PYTHON_DEB_LAYOUT "Enable Debian-style Python package layout" OFF)
Expand Down Expand Up @@ -57,7 +56,6 @@ check_minimal_cxx_standard(11 ENFORCE)
# --- DEPENDENCIES -----------------------------------
# ----------------------------------------------------


# Set component to fetch from boost Get the python interface for the bindings
if(BUILD_PYTHON_INTERFACE)
findpython(REQUIRED)
Expand Down Expand Up @@ -100,8 +98,7 @@ install(
EXPORT ${TARGETS_EXPORT_NAME}
DESTINATION lib)

install(FILES package.xml
DESTINATION share/${PROJECT_NAME})
install(FILES package.xml DESTINATION share/${PROJECT_NAME})
# --- BINDINGS -----------------------------------------------------------------

if(BUILD_PYTHON_INTERFACE)
Expand Down Expand Up @@ -135,14 +132,14 @@ endif(BUILD_PYTHON_INTERFACE)
# --- CHECK EXAMPLES -----------------------------------------------------------
add_executable(master_board_example example/example.cpp)
target_link_libraries(master_board_example ${PROJECT_NAME})
set_target_properties(master_board_example PROPERTIES
INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
set_target_properties(master_board_example
PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
install(TARGETS master_board_example DESTINATION bin)

add_executable(master_board_example_pd example/example_pd.cpp)
target_link_libraries(master_board_example_pd ${PROJECT_NAME})
set_target_properties(master_board_example_pd PROPERTIES
INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
set_target_properties(master_board_example_pd
PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
install(TARGETS master_board_example_pd DESTINATION bin)

add_executable(master_board_example_imu_data_collection
Expand Down
1 change: 1 addition & 0 deletions sdk/master_board_sdk/example/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <chrono>
#include <math.h>
#include <stdio.h>
#include <stdexcept>
#include <sys/stat.h>

#include "master_board_sdk/master_board_interface.h"
Expand Down

0 comments on commit fe81d11

Please sign in to comment.