development/gtest: Change the cmake file install routine.

Use a more compatible (with current) one

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2024-05-12 14:47:00 +02:00 committed by Willy Sudiarto Raharjo
parent 210e371598
commit 744aef7a47
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -121,9 +121,10 @@ for i in gmock gmock_main gtest gtest_main ; do
> $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/${i}.pc
done
# copy the cmake filesa
cp -a build/googletest/CMakeFiles/Export/lib$LIBDIRSUFFIX/cmake $PKG/usr/lib$LIBDIRSUFFIX/
install -m 0644 build/googletest/generated/*.cmake $PKG/usr/lib$LIBDIRSUFFIX/cmake/GTest
# copy the cmake files
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/cmake/GTest
find build/googletest/CMakeFiles/Export build/googletest/generated \
-name *.cmake -exec cp {} $PKG/usr/lib$LIBDIRSUFFIX/cmake/GTest \;
mkdir -p $PKG/usr/src
cp -R googlemock $PKG/usr/src