From 81e5447eccb518c86e7703e581e5ef0fa3d0cdf7 Mon Sep 17 00:00:00 2001 From: Mathias Kraus Date: Fri, 5 Jul 2024 15:47:26 +0200 Subject: [PATCH] iox-#1295 Make iceoryx version available for in-tree builds --- .../iceoryx_binding_cConfigVersion.cmake | 31 +++++++++++++++++++ .../cmake/iceoryx_hoofsConfigVersion.cmake | 31 +++++++++++++++++++ .../cmake/iceoryx_platformConfigVersion.cmake | 31 +++++++++++++++++++ .../cmake/iceoryx_poshConfigVersion.cmake | 31 +++++++++++++++++++ .../iceoryx_introspectionConfigVersion.cmake | 31 +++++++++++++++++++ 5 files changed, 155 insertions(+) create mode 100644 iceoryx_binding_c/cmake/iceoryx_binding_cConfigVersion.cmake create mode 100644 iceoryx_hoofs/cmake/iceoryx_hoofsConfigVersion.cmake create mode 100644 iceoryx_platform/cmake/iceoryx_platformConfigVersion.cmake create mode 100644 iceoryx_posh/cmake/iceoryx_poshConfigVersion.cmake create mode 100644 tools/introspection/cmake/iceoryx_introspectionConfigVersion.cmake diff --git a/iceoryx_binding_c/cmake/iceoryx_binding_cConfigVersion.cmake b/iceoryx_binding_c/cmake/iceoryx_binding_cConfigVersion.cmake new file mode 100644 index 0000000000..6dfa5e829b --- /dev/null +++ b/iceoryx_binding_c/cmake/iceoryx_binding_cConfigVersion.cmake @@ -0,0 +1,31 @@ +# Copyright (c) 2024 by ekxide IO GmbH. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + +# +########## dummyConfig.cmake to be able to use find_package with a specific version with the source tree ########## +# + +set(IOX_VERSION_STRING "2.95.0") +set(PACKAGE_VERSION ${IOX_VERSION_STRING}) + +if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) + set(PACKAGE_VERSION_COMPATIBLE FALSE) +else() + set(PACKAGE_VERSION_COMPATIBLE TRUE) + if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) + endif() +endif() diff --git a/iceoryx_hoofs/cmake/iceoryx_hoofsConfigVersion.cmake b/iceoryx_hoofs/cmake/iceoryx_hoofsConfigVersion.cmake new file mode 100644 index 0000000000..6dfa5e829b --- /dev/null +++ b/iceoryx_hoofs/cmake/iceoryx_hoofsConfigVersion.cmake @@ -0,0 +1,31 @@ +# Copyright (c) 2024 by ekxide IO GmbH. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + +# +########## dummyConfig.cmake to be able to use find_package with a specific version with the source tree ########## +# + +set(IOX_VERSION_STRING "2.95.0") +set(PACKAGE_VERSION ${IOX_VERSION_STRING}) + +if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) + set(PACKAGE_VERSION_COMPATIBLE FALSE) +else() + set(PACKAGE_VERSION_COMPATIBLE TRUE) + if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) + endif() +endif() diff --git a/iceoryx_platform/cmake/iceoryx_platformConfigVersion.cmake b/iceoryx_platform/cmake/iceoryx_platformConfigVersion.cmake new file mode 100644 index 0000000000..6dfa5e829b --- /dev/null +++ b/iceoryx_platform/cmake/iceoryx_platformConfigVersion.cmake @@ -0,0 +1,31 @@ +# Copyright (c) 2024 by ekxide IO GmbH. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + +# +########## dummyConfig.cmake to be able to use find_package with a specific version with the source tree ########## +# + +set(IOX_VERSION_STRING "2.95.0") +set(PACKAGE_VERSION ${IOX_VERSION_STRING}) + +if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) + set(PACKAGE_VERSION_COMPATIBLE FALSE) +else() + set(PACKAGE_VERSION_COMPATIBLE TRUE) + if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) + endif() +endif() diff --git a/iceoryx_posh/cmake/iceoryx_poshConfigVersion.cmake b/iceoryx_posh/cmake/iceoryx_poshConfigVersion.cmake new file mode 100644 index 0000000000..6dfa5e829b --- /dev/null +++ b/iceoryx_posh/cmake/iceoryx_poshConfigVersion.cmake @@ -0,0 +1,31 @@ +# Copyright (c) 2024 by ekxide IO GmbH. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + +# +########## dummyConfig.cmake to be able to use find_package with a specific version with the source tree ########## +# + +set(IOX_VERSION_STRING "2.95.0") +set(PACKAGE_VERSION ${IOX_VERSION_STRING}) + +if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) + set(PACKAGE_VERSION_COMPATIBLE FALSE) +else() + set(PACKAGE_VERSION_COMPATIBLE TRUE) + if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) + endif() +endif() diff --git a/tools/introspection/cmake/iceoryx_introspectionConfigVersion.cmake b/tools/introspection/cmake/iceoryx_introspectionConfigVersion.cmake new file mode 100644 index 0000000000..6dfa5e829b --- /dev/null +++ b/tools/introspection/cmake/iceoryx_introspectionConfigVersion.cmake @@ -0,0 +1,31 @@ +# Copyright (c) 2024 by ekxide IO GmbH. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + +# +########## dummyConfig.cmake to be able to use find_package with a specific version with the source tree ########## +# + +set(IOX_VERSION_STRING "2.95.0") +set(PACKAGE_VERSION ${IOX_VERSION_STRING}) + +if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) + set(PACKAGE_VERSION_COMPATIBLE FALSE) +else() + set(PACKAGE_VERSION_COMPATIBLE TRUE) + if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) + endif() +endif()