Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stdexcept as an include in example.cpp Fix https://github.com/ope… #154

Merged
Merged
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
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
Loading