diff --git a/MaestroConfig.cmake.in b/MaestroConfig.cmake.in new file mode 100644 index 0000000000000000000000000000000000000000..7e1e7f7e507fc53b8e4dbf909692667dea279b5c --- /dev/null +++ b/MaestroConfig.cmake.in @@ -0,0 +1,35 @@ +# +# 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) diff --git a/Makefile.am b/Makefile.am index 6362694845fdd2fe933c805726a729822e103c11..14faf1158dcd005478ecb50df51853ce54e6854d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 diff --git a/configure.ac b/configure.ac index 8a029a626991cf1710feab7a83dd65da2cbffd03..aa3110a32d2e1de1a27641c1a18f2942a3c66e8f 100644 --- a/configure.ac +++ b/configure.ac @@ -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