|
@@ -1,257 +0,0 @@
|
|
-# generated from catkin/cmake/template/pkgConfig.cmake.in
|
|
|
|
-
|
|
|
|
-# append elements to a list and remove existing duplicates from the list
|
|
|
|
-# copied from catkin/cmake/list_append_deduplicate.cmake to keep pkgConfig
|
|
|
|
-# self contained
|
|
|
|
-macro(_list_append_deduplicate listname)
|
|
|
|
- if(NOT "${ARGN}" STREQUAL "")
|
|
|
|
- if(${listname})
|
|
|
|
- list(REMOVE_ITEM ${listname} ${ARGN})
|
|
|
|
- endif()
|
|
|
|
- list(APPEND ${listname} ${ARGN})
|
|
|
|
- endif()
|
|
|
|
-endmacro()
|
|
|
|
-
|
|
|
|
-# append elements to a list if they are not already in the list
|
|
|
|
-# copied from catkin/cmake/list_append_unique.cmake to keep pkgConfig
|
|
|
|
-# self contained
|
|
|
|
-macro(_list_append_unique listname)
|
|
|
|
- foreach(_item ${ARGN})
|
|
|
|
- list(FIND ${listname} ${_item} _index)
|
|
|
|
- if(_index EQUAL -1)
|
|
|
|
- list(APPEND ${listname} ${_item})
|
|
|
|
- endif()
|
|
|
|
- endforeach()
|
|
|
|
-endmacro()
|
|
|
|
-
|
|
|
|
-# pack a list of libraries with optional build configuration keywords
|
|
|
|
-# copied from catkin/cmake/catkin_libraries.cmake to keep pkgConfig
|
|
|
|
-# self contained
|
|
|
|
-macro(_pack_libraries_with_build_configuration VAR)
|
|
|
|
- set(${VAR} "")
|
|
|
|
- set(_argn ${ARGN})
|
|
|
|
- list(LENGTH _argn _count)
|
|
|
|
- set(_index 0)
|
|
|
|
- while(${_index} LESS ${_count})
|
|
|
|
- list(GET _argn ${_index} lib)
|
|
|
|
- if("${lib}" MATCHES "^(debug|optimized|general)$")
|
|
|
|
- math(EXPR _index "${_index} + 1")
|
|
|
|
- if(${_index} EQUAL ${_count})
|
|
|
|
- message(FATAL_ERROR "_pack_libraries_with_build_configuration() the list of libraries '${ARGN}' ends with '${lib}' which is a build configuration keyword and must be followed by a library")
|
|
|
|
- endif()
|
|
|
|
- list(GET _argn ${_index} library)
|
|
|
|
- list(APPEND ${VAR} "${lib}${CATKIN_BUILD_CONFIGURATION_KEYWORD_SEPARATOR}${library}")
|
|
|
|
- else()
|
|
|
|
- list(APPEND ${VAR} "${lib}")
|
|
|
|
- endif()
|
|
|
|
- math(EXPR _index "${_index} + 1")
|
|
|
|
- endwhile()
|
|
|
|
-endmacro()
|
|
|
|
-
|
|
|
|
-# unpack a list of libraries with optional build configuration keyword prefixes
|
|
|
|
-# copied from catkin/cmake/catkin_libraries.cmake to keep pkgConfig
|
|
|
|
-# self contained
|
|
|
|
-macro(_unpack_libraries_with_build_configuration VAR)
|
|
|
|
- set(${VAR} "")
|
|
|
|
- foreach(lib ${ARGN})
|
|
|
|
- string(REGEX REPLACE "^(debug|optimized|general)${CATKIN_BUILD_CONFIGURATION_KEYWORD_SEPARATOR}(.+)$" "\\1;\\2" lib "${lib}")
|
|
|
|
- list(APPEND ${VAR} "${lib}")
|
|
|
|
- endforeach()
|
|
|
|
-endmacro()
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-if(nav_msgs_CONFIG_INCLUDED)
|
|
|
|
- return()
|
|
|
|
-endif()
|
|
|
|
-set(nav_msgs_CONFIG_INCLUDED TRUE)
|
|
|
|
-
|
|
|
|
-# set variables for source/devel/install prefixes
|
|
|
|
-if("FALSE" STREQUAL "TRUE")
|
|
|
|
- set(nav_msgs_SOURCE_PREFIX /home/pj1.1/autodriver/src/common/nav_msgs)
|
|
|
|
- set(nav_msgs_DEVEL_PREFIX /home/pj1.1/autodriver/devel)
|
|
|
|
- set(nav_msgs_INSTALL_PREFIX "")
|
|
|
|
- set(nav_msgs_PREFIX ${nav_msgs_DEVEL_PREFIX})
|
|
|
|
-else()
|
|
|
|
- set(nav_msgs_SOURCE_PREFIX "")
|
|
|
|
- set(nav_msgs_DEVEL_PREFIX "")
|
|
|
|
- set(nav_msgs_INSTALL_PREFIX /home/pj1.1/autodriver/install)
|
|
|
|
- set(nav_msgs_PREFIX ${nav_msgs_INSTALL_PREFIX})
|
|
|
|
-endif()
|
|
|
|
-
|
|
|
|
-if(CMAKE_CROSSCOMPILING)
|
|
|
|
- if("FALSE" STREQUAL "TRUE")
|
|
|
|
- # can not disable host filesystem altogether; otherwise files in src/devel are no longer found
|
|
|
|
- set(_find_root_path_both CMAKE_FIND_ROOT_PATH_BOTH)
|
|
|
|
- else()
|
|
|
|
- set(_find_root_path_both)
|
|
|
|
- endif()
|
|
|
|
-endif()
|
|
|
|
-
|
|
|
|
-# warn when using a deprecated package
|
|
|
|
-if(NOT "" STREQUAL "")
|
|
|
|
- set(_msg "WARNING: package 'nav_msgs' is deprecated")
|
|
|
|
- # append custom deprecation text if available
|
|
|
|
- if(NOT "" STREQUAL "TRUE")
|
|
|
|
- set(_msg "${_msg} ()")
|
|
|
|
- endif()
|
|
|
|
- message("${_msg}")
|
|
|
|
-endif()
|
|
|
|
-
|
|
|
|
-# flag project as catkin-based to distinguish if a find_package()-ed project is a catkin project
|
|
|
|
-set(nav_msgs_FOUND_CATKIN_PROJECT TRUE)
|
|
|
|
-
|
|
|
|
-if(NOT "include " STREQUAL " ")
|
|
|
|
- set(nav_msgs_INCLUDE_DIRS "")
|
|
|
|
- set(_include_dirs "include")
|
|
|
|
- if(NOT " " STREQUAL " ")
|
|
|
|
- set(_report "Check the issue tracker '' and consider creating a ticket if the problem has not been reported yet.")
|
|
|
|
- elseif(NOT "http://wiki.ros.org/nav_msgs " STREQUAL " ")
|
|
|
|
- set(_report "Check the website 'http://wiki.ros.org/nav_msgs' for information and consider reporting the problem.")
|
|
|
|
- else()
|
|
|
|
- set(_report "Report the problem to the maintainer 'Michel Hidalgo <michel@ekumenlabs.com>' and request to fix the problem.")
|
|
|
|
- endif()
|
|
|
|
- foreach(idir ${_include_dirs})
|
|
|
|
- if(IS_ABSOLUTE ${idir} AND CMAKE_CROSSCOMPILING)
|
|
|
|
- get_filename_component(idir_path ${idir} DIRECTORY)
|
|
|
|
- get_filename_component(idir_name ${idir} NAME)
|
|
|
|
- set(include_dir_path "include_dir_path-NOTFOUND")
|
|
|
|
- # use find_path to locate absolute path nested under potential root path
|
|
|
|
- find_path(include_dir_path ${idir_name}
|
|
|
|
- PATHS ${idir_path}
|
|
|
|
- NO_DEFAULT_PATH ${_find_root_path_both})
|
|
|
|
- if(NOT include_dir_path)
|
|
|
|
- message(FATAL_ERROR "Project 'nav_msgs' specifies '${idir}' as an include dir, which is not found. It does not exist in any of the root filesystems. Ask the maintainer 'Michel Hidalgo <michel@ekumenlabs.com>' to fix it.")
|
|
|
|
- endif()
|
|
|
|
- set(include "${include_dir_path}/${idir_name}")
|
|
|
|
- elseif(IS_ABSOLUTE ${idir} AND IS_DIRECTORY ${idir})
|
|
|
|
- set(include ${idir})
|
|
|
|
- elseif("${idir} " STREQUAL "include ")
|
|
|
|
- get_filename_component(include "${nav_msgs_DIR}/../../../include" ABSOLUTE)
|
|
|
|
- if(NOT IS_DIRECTORY ${include})
|
|
|
|
- message(FATAL_ERROR "Project 'nav_msgs' specifies '${idir}' as an include dir, which is not found. It does not exist in '${include}'. ${_report}")
|
|
|
|
- endif()
|
|
|
|
- else()
|
|
|
|
- message(FATAL_ERROR "Project 'nav_msgs' specifies '${idir}' as an include dir, which is not found. It does neither exist as an absolute directory nor in '\${prefix}/${idir}'. ${_report}")
|
|
|
|
- endif()
|
|
|
|
- _list_append_unique(nav_msgs_INCLUDE_DIRS ${include})
|
|
|
|
- endforeach()
|
|
|
|
-endif()
|
|
|
|
-
|
|
|
|
-set(libraries "")
|
|
|
|
-foreach(library ${libraries})
|
|
|
|
- # keep build configuration keywords, target names and absolute libraries as-is
|
|
|
|
- if("${library}" MATCHES "^(debug|optimized|general)$")
|
|
|
|
- list(APPEND nav_msgs_LIBRARIES ${library})
|
|
|
|
- elseif(${library} MATCHES "^-l")
|
|
|
|
- list(APPEND nav_msgs_LIBRARIES ${library})
|
|
|
|
- elseif(${library} MATCHES "^-")
|
|
|
|
- # This is a linker flag/option (like -pthread)
|
|
|
|
- # There's no standard variable for these, so create an interface library to hold it
|
|
|
|
- if(NOT nav_msgs_NUM_DUMMY_TARGETS)
|
|
|
|
- set(nav_msgs_NUM_DUMMY_TARGETS 0)
|
|
|
|
- endif()
|
|
|
|
- # Make sure the target name is unique
|
|
|
|
- set(interface_target_name "catkin::nav_msgs::wrapped-linker-option${nav_msgs_NUM_DUMMY_TARGETS}")
|
|
|
|
- while(TARGET "${interface_target_name}")
|
|
|
|
- math(EXPR nav_msgs_NUM_DUMMY_TARGETS "${nav_msgs_NUM_DUMMY_TARGETS}+1")
|
|
|
|
- set(interface_target_name "catkin::nav_msgs::wrapped-linker-option${nav_msgs_NUM_DUMMY_TARGETS}")
|
|
|
|
- endwhile()
|
|
|
|
- add_library("${interface_target_name}" INTERFACE IMPORTED)
|
|
|
|
- if("${CMAKE_VERSION}" VERSION_LESS "3.13.0")
|
|
|
|
- set_property(
|
|
|
|
- TARGET
|
|
|
|
- "${interface_target_name}"
|
|
|
|
- APPEND PROPERTY
|
|
|
|
- INTERFACE_LINK_LIBRARIES "${library}")
|
|
|
|
- else()
|
|
|
|
- target_link_options("${interface_target_name}" INTERFACE "${library}")
|
|
|
|
- endif()
|
|
|
|
- list(APPEND nav_msgs_LIBRARIES "${interface_target_name}")
|
|
|
|
- elseif(TARGET ${library})
|
|
|
|
- list(APPEND nav_msgs_LIBRARIES ${library})
|
|
|
|
- elseif(IS_ABSOLUTE ${library} AND CMAKE_CROSSCOMPILING)
|
|
|
|
- get_filename_component(lib_path ${library} DIRECTORY)
|
|
|
|
- get_filename_component(lib_name ${library} NAME)
|
|
|
|
- set(lib "lib-NOTFOUND")
|
|
|
|
- # use find_library to locate library given by absolute path nested under potential root path
|
|
|
|
- find_library(lib ${lib_name}
|
|
|
|
- PATHS ${lib_path}
|
|
|
|
- NO_DEFAULT_PATH ${_find_root_path_both})
|
|
|
|
- if(NOT lib)
|
|
|
|
- message(FATAL_ERROR "Project '${PROJECT_NAME}' tried to find library '${library}'. The library is neither a target nor built/installed properly. Did you compile project 'nav_msgs'? Did you find_package() it before the subdirectory containing its code is included?")
|
|
|
|
- endif()
|
|
|
|
- _list_append_unique(nav_msgs_LIBRARY_DIRS ${lib_path})
|
|
|
|
- list(APPEND nav_msgs_LIBRARIES ${lib})
|
|
|
|
- elseif(IS_ABSOLUTE ${library})
|
|
|
|
- list(APPEND nav_msgs_LIBRARIES ${library})
|
|
|
|
- else()
|
|
|
|
- set(lib_path "")
|
|
|
|
- set(lib "lib-NOTFOUND")
|
|
|
|
- # since the path where the library is found is returned we have to iterate over the paths manually
|
|
|
|
- foreach(path /home/pj1.1/autodriver/install/lib;/opt/ros/melodic/lib;/opt/bstos/2.2.2.4/sysroots/x86_64-bstsdk-linux/opt/ros/melodic/lib)
|
|
|
|
- find_library(lib ${library}
|
|
|
|
- PATHS ${path}
|
|
|
|
- NO_DEFAULT_PATH ${_find_root_path_both})
|
|
|
|
- if(lib)
|
|
|
|
- get_filename_component(lib_path ${lib} DIRECTORY)
|
|
|
|
- break()
|
|
|
|
- endif()
|
|
|
|
- endforeach()
|
|
|
|
- if(lib)
|
|
|
|
- _list_append_unique(nav_msgs_LIBRARY_DIRS ${lib_path})
|
|
|
|
- list(APPEND nav_msgs_LIBRARIES ${lib})
|
|
|
|
- else()
|
|
|
|
- # as a fall back for non-catkin libraries try to search globally
|
|
|
|
- find_library(lib ${library})
|
|
|
|
- if(NOT lib)
|
|
|
|
- message(FATAL_ERROR "Project '${PROJECT_NAME}' tried to find library '${library}'. The library is neither a target nor built/installed properly. Did you compile project 'nav_msgs'? Did you find_package() it before the subdirectory containing its code is included?")
|
|
|
|
- endif()
|
|
|
|
- list(APPEND nav_msgs_LIBRARIES ${lib})
|
|
|
|
- endif()
|
|
|
|
- endif()
|
|
|
|
-endforeach()
|
|
|
|
-
|
|
|
|
-set(nav_msgs_EXPORTED_TARGETS "nav_msgs_generate_messages_cpp;nav_msgs_generate_messages_nodejs;nav_msgs_generate_messages_py")
|
|
|
|
-# create dummy targets for exported code generation targets to make life of users easier
|
|
|
|
-foreach(t ${nav_msgs_EXPORTED_TARGETS})
|
|
|
|
- if(NOT TARGET ${t})
|
|
|
|
- add_custom_target(${t})
|
|
|
|
- endif()
|
|
|
|
-endforeach()
|
|
|
|
-
|
|
|
|
-set(depends "geometry_msgs;message_runtime;std_msgs;actionlib_msgs")
|
|
|
|
-foreach(depend ${depends})
|
|
|
|
- string(REPLACE " " ";" depend_list ${depend})
|
|
|
|
- # the package name of the dependency must be kept in a unique variable so that it is not overwritten in recursive calls
|
|
|
|
- list(GET depend_list 0 nav_msgs_dep)
|
|
|
|
- list(LENGTH depend_list count)
|
|
|
|
- if(${count} EQUAL 1)
|
|
|
|
- # simple dependencies must only be find_package()-ed once
|
|
|
|
- if(NOT ${nav_msgs_dep}_FOUND)
|
|
|
|
- find_package(${nav_msgs_dep} REQUIRED NO_MODULE)
|
|
|
|
- endif()
|
|
|
|
- else()
|
|
|
|
- # dependencies with components must be find_package()-ed again
|
|
|
|
- list(REMOVE_AT depend_list 0)
|
|
|
|
- find_package(${nav_msgs_dep} REQUIRED NO_MODULE ${depend_list})
|
|
|
|
- endif()
|
|
|
|
- _list_append_unique(nav_msgs_INCLUDE_DIRS ${${nav_msgs_dep}_INCLUDE_DIRS})
|
|
|
|
-
|
|
|
|
- # merge build configuration keywords with library names to correctly deduplicate
|
|
|
|
- _pack_libraries_with_build_configuration(nav_msgs_LIBRARIES ${nav_msgs_LIBRARIES})
|
|
|
|
- _pack_libraries_with_build_configuration(_libraries ${${nav_msgs_dep}_LIBRARIES})
|
|
|
|
- _list_append_deduplicate(nav_msgs_LIBRARIES ${_libraries})
|
|
|
|
- # undo build configuration keyword merging after deduplication
|
|
|
|
- _unpack_libraries_with_build_configuration(nav_msgs_LIBRARIES ${nav_msgs_LIBRARIES})
|
|
|
|
-
|
|
|
|
- _list_append_unique(nav_msgs_LIBRARY_DIRS ${${nav_msgs_dep}_LIBRARY_DIRS})
|
|
|
|
- list(APPEND nav_msgs_EXPORTED_TARGETS ${${nav_msgs_dep}_EXPORTED_TARGETS})
|
|
|
|
-endforeach()
|
|
|
|
-
|
|
|
|
-set(pkg_cfg_extras "nav_msgs-msg-extras.cmake")
|
|
|
|
-foreach(extra ${pkg_cfg_extras})
|
|
|
|
- if(NOT IS_ABSOLUTE ${extra})
|
|
|
|
- set(extra ${nav_msgs_DIR}/${extra})
|
|
|
|
- endif()
|
|
|
|
- include(${extra})
|
|
|
|
-endforeach()
|
|
|