Skip to content
Snippets Groups Projects
Commit e36de7fc authored by Ali Mohammed's avatar Ali Mohammed
Browse files

Add CMake package to the installation, such that users can find Maestro using find_package()

parent 870e4da2
No related branches found
No related tags found
1 merge request!11Resolve "Installation Pattern, Header File Include Pattern and C++ Compilers"
#
# Copyright (C) 2021 HPE Computer GmbH
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
set(PREFIX @prefix@)
set(Maestro_INCLUDE_DIRS ${PREFIX}/include/maestro)
set(Maestro_LIBRARIES ${PREFIX}/lib/libmaestro.a)
......@@ -65,6 +65,10 @@ libmaestro_la_LIBADD = \
# README
dist_doc_DATA = README.md
# CMake package
cmakepackagedir = $(libdir)/cmake/maestro/
cmakepackage_DATA = MaestroConfig.cmake
if WITH_FREQUENT_TAGS
all-local: TAGS tags
endif
......
......@@ -536,6 +536,7 @@ AC_CONFIG_FILES([
deps/libyaml/src/Makefile
deps/libcyaml/Makefile
deps/c-timestamp/Makefile
MaestroConfig.cmake
])
dnl AC_SUBST does not preserve executable bit on scripts, so do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment