Dependents: mbed-os-example-mros2 example-mbed-mros2-sub-pose example-mbed-mros2-pub-twist example-mbed-mros2-mturtle-teleop
embeddedRTPS/thirdparty/Micro-CDR/cmake/config/microcdrConfig.cmake@7:c80f65422d99, 2022-03-19 (annotated)
- Committer:
- smoritaemb
- Date:
- Sat Mar 19 09:23:37 2022 +0900
- Revision:
- 7:c80f65422d99
- Parent:
- 0:580aba13d1a1
Merge test_assortment_of_msgs branch.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
smoritaemb | 0:580aba13d1a1 | 1 | # Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). |
smoritaemb | 0:580aba13d1a1 | 2 | # |
smoritaemb | 0:580aba13d1a1 | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
smoritaemb | 0:580aba13d1a1 | 4 | # you may not use this file except in compliance with the License. |
smoritaemb | 0:580aba13d1a1 | 5 | # You may obtain a copy of the License at |
smoritaemb | 0:580aba13d1a1 | 6 | # |
smoritaemb | 0:580aba13d1a1 | 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
smoritaemb | 0:580aba13d1a1 | 8 | # |
smoritaemb | 0:580aba13d1a1 | 9 | # Unless required by applicable law or agreed to in writing, software |
smoritaemb | 0:580aba13d1a1 | 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
smoritaemb | 0:580aba13d1a1 | 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
smoritaemb | 0:580aba13d1a1 | 12 | # See the License for the specific language governing permissions and |
smoritaemb | 0:580aba13d1a1 | 13 | # limitations under the License. |
smoritaemb | 0:580aba13d1a1 | 14 | |
smoritaemb | 0:580aba13d1a1 | 15 | set(microcdr_VERSION 2.0.0) |
smoritaemb | 0:580aba13d1a1 | 16 | |
smoritaemb | 0:580aba13d1a1 | 17 | |
smoritaemb | 0:580aba13d1a1 | 18 | ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() ####### |
smoritaemb | 0:580aba13d1a1 | 19 | ####### Any changes to this file will be overwritten by the next CMake run #### |
smoritaemb | 0:580aba13d1a1 | 20 | ####### The input file was Config.cmake.in ######## |
smoritaemb | 0:580aba13d1a1 | 21 | |
smoritaemb | 0:580aba13d1a1 | 22 | get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE) |
smoritaemb | 0:580aba13d1a1 | 23 | |
smoritaemb | 0:580aba13d1a1 | 24 | macro(set_and_check _var _file) |
smoritaemb | 0:580aba13d1a1 | 25 | set(${_var} "${_file}") |
smoritaemb | 0:580aba13d1a1 | 26 | if(NOT EXISTS "${_file}") |
smoritaemb | 0:580aba13d1a1 | 27 | message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !") |
smoritaemb | 0:580aba13d1a1 | 28 | endif() |
smoritaemb | 0:580aba13d1a1 | 29 | endmacro() |
smoritaemb | 0:580aba13d1a1 | 30 | |
smoritaemb | 0:580aba13d1a1 | 31 | macro(check_required_components _NAME) |
smoritaemb | 0:580aba13d1a1 | 32 | foreach(comp ${${_NAME}_FIND_COMPONENTS}) |
smoritaemb | 0:580aba13d1a1 | 33 | if(NOT ${_NAME}_${comp}_FOUND) |
smoritaemb | 0:580aba13d1a1 | 34 | if(${_NAME}_FIND_REQUIRED_${comp}) |
smoritaemb | 0:580aba13d1a1 | 35 | set(${_NAME}_FOUND FALSE) |
smoritaemb | 0:580aba13d1a1 | 36 | endif() |
smoritaemb | 0:580aba13d1a1 | 37 | endif() |
smoritaemb | 0:580aba13d1a1 | 38 | endforeach() |
smoritaemb | 0:580aba13d1a1 | 39 | endmacro() |
smoritaemb | 0:580aba13d1a1 | 40 | |
smoritaemb | 0:580aba13d1a1 | 41 | #################################################################################### |
smoritaemb | 0:580aba13d1a1 | 42 | |
smoritaemb | 0:580aba13d1a1 | 43 | if((MSVC OR MSVC_IDE) AND EXISTS "${PACKAGE_PREFIX_DIR}/bin") |
smoritaemb | 0:580aba13d1a1 | 44 | set_and_check(microcdr_BIN_DIR "${PACKAGE_PREFIX_DIR}/bin") |
smoritaemb | 0:580aba13d1a1 | 45 | endif() |
smoritaemb | 0:580aba13d1a1 | 46 | set_and_check(microcdr_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/include") |
smoritaemb | 0:580aba13d1a1 | 47 | set_and_check(microcdr_LIB_DIR "${PACKAGE_PREFIX_DIR}/lib") |
smoritaemb | 0:580aba13d1a1 | 48 | set_and_check(microcdr_DATA_DIR "${PACKAGE_PREFIX_DIR}/share") |
smoritaemb | 0:580aba13d1a1 | 49 | |
smoritaemb | 0:580aba13d1a1 | 50 | include(${microcdr_DATA_DIR}/microcdr/cmake/microcdrTargets.cmake) |