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

Fix plugin name in cmakefile

parent d8c69738
No related branches found
No related tags found
1 merge request!24After 2nd RAL submission
...@@ -233,16 +233,6 @@ src/yaml/processor_bundle_adjustment_yaml.cpp ...@@ -233,16 +233,6 @@ src/yaml/processor_bundle_adjustment_yaml.cpp
# SET(SRCS_WRAPPER) # SET(SRCS_WRAPPER)
# ENDIF(Ceres_FOUND) # ENDIF(Ceres_FOUND)
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
...@@ -260,6 +250,20 @@ ADD_LIBRARY(${PLUGIN_NAME} ...@@ -260,6 +250,20 @@ ADD_LIBRARY(${PLUGIN_NAME}
${SRCS_WRAPPER} ${SRCS_WRAPPER}
${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})
TARGET_LINK_LIBRARIES(${PLUGIN_NAME} ${OpenCV_LIBS}) TARGET_LINK_LIBRARIES(${PLUGIN_NAME} ${OpenCV_LIBS})
TARGET_LINK_LIBRARIES(${PLUGIN_NAME} ${vision_utils_LIBRARY}) TARGET_LINK_LIBRARIES(${PLUGIN_NAME} ${vision_utils_LIBRARY})
......
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