Skip to content

Commit

Permalink
[pre-commit] Fix CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-stasse committed Apr 2, 2024
1 parent 277b1f4 commit 9571ca2
Showing 1 changed file with 5 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

0 comments on commit 9571ca2

Please sign in to comment.