Skip to content
Snippets Groups Projects
Commit 6e7e33ce authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Fix plugin name in cmakefile

parent 63b59981
No related branches found
No related tags found
2 merge requests!18Release after RAL,!17After 2nd RAL submission
...@@ -173,16 +173,6 @@ src/sensor/sensor_force_torque.cpp ...@@ -173,16 +173,6 @@ src/sensor/sensor_force_torque.cpp
src/sensor/sensor_inertial_kinematics.cpp src/sensor/sensor_inertial_kinematics.cpp
) )
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
message(STATUS "Using C++ compiler clang")
target_compile_options(${PROJECT_NAME} PRIVATE -Winconsistent-missing-override)
# using Clang
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
message(STATUS "Using C++ compiler gnu")
target_compile_options(${PROJECT_NAME} PRIVATE -Wsuggest-override)
# using GCC
endif()
# create the shared library # create the shared library
ADD_LIBRARY(${PLUGIN_NAME} ADD_LIBRARY(${PLUGIN_NAME}
SHARED SHARED
...@@ -194,6 +184,22 @@ ADD_LIBRARY(${PLUGIN_NAME} ...@@ -194,6 +184,22 @@ ADD_LIBRARY(${PLUGIN_NAME}
${SRCS_SENSOR} ${SRCS_SENSOR}
${SRCS_YAML} ${SRCS_YAML}
) )
# Set compiler options
# ====================
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
message(STATUS "Using C++ compiler clang")
target_compile_options(${PLUGIN_NAME} PRIVATE -Winconsistent-missing-override)
# using Clang
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
message(STATUS "Using C++ compiler gnu")
target_compile_options(${PLUGIN_NAME} PRIVATE -Wsuggest-override)
# using GCC
endif()
TARGET_LINK_LIBRARIES(${PLUGIN_NAME} ${wolf_LIBRARIES}) TARGET_LINK_LIBRARIES(${PLUGIN_NAME} ${wolf_LIBRARIES})
# Link the library with the required dependencies # Link the library with the required dependencies
# TARGET_LINK_LIBRARIES(${PLUGIN_NAME} wolfimu_INCLUDE_DIRS) # TARGET_LINK_LIBRARIES(${PLUGIN_NAME} wolfimu_INCLUDE_DIRS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment