Skip to content
Snippets Groups Projects
Commit e90d308c authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

changed list filter by string replace

parent 6b3a96e3
No related branches found
No related tags found
2 merge requests!8Cmake refactoring was merged to main, merge back to devel also,!7Resolve "Adapt to core CMakeLists.txt refactor"
Pipeline #10909 failed
......@@ -28,11 +28,12 @@ link_directories(${csm_LIBRARY_DIRS})
message(csm_LIBRARY_DIRS: ${csm_LIBRARY_DIRS})
# keep only the files in a lib folder: by default the "." is in csm_LIBRARY_DIRS,
# which is not acceptable for target_link_directories
SET(csm_LIBRARY_DIRS_LENGTH "0")
list(LENGTH csm_LIBRARY_DIRS csm_LIBRARY_DIRS_LENGTH )
message("$csm_LIBRARY_DIRS_LENGTH")
list(FILTER csm_LIBRARY_DIRS EXCLUDE REGEX ".")
string(REPLACE "./" "/" csm_LIBRARY_DIRS ${csm_LIBRARY_DIRS})
# SET(csm_LIBRARY_DIRS_LENGTH "0")
# list(LENGTH csm_LIBRARY_DIRS csm_LIBRARY_DIRS_LENGTH )
message(csm_LIBRARY_DIRS: ${csm_LIBRARY_DIRS})
# list(FILTER csm_LIBRARY_DIRS EXCLUDE REGEX ".")
# message(csm_LIBRARY_DIRS: ${csm_LIBRARY_DIRS})
#Build tests
......@@ -191,8 +192,12 @@ install(
# Specifies include directories to use when compiling the plugin target
# This way, include_directories does not need to be called in plugins depending on this one
target_include_directories(${PROJECT_NAME} INTERFACE
$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>
# target_include_directories(${PROJECT_NAME} INTERFACE
# $<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>
# )
target_include_directories(${PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/laser_scan_utils>
$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>
)
#Build tests
......
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