Skip to content

Commit 6d596dd

Browse files
authored
Merge pull request #67 from DrDaveD/release-binaries
Add scitokens-* binaries to the packages
2 parents 2a2b4ef + b5855a7 commit 6d596dd

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,14 @@ ExternalProject_Add(gtest
8080
endif()
8181
enable_testing()
8282
add_subdirectory(test)
83-
endif()
8483

84+
else()
85+
get_directory_property(TARGETS BUILDSYSTEM_TARGETS)
8586
install(
86-
TARGETS SciTokens
87-
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} )
87+
TARGETS ${TARGETS}
88+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
89+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )
90+
endif()
8891

8992
install(
9093
FILES src/scitokens.h

debian/libscitokens0.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
debian/tmp/usr/lib/*/libSciTokens.so.*
2+
debian/tmp/usr/bin/scitokens-*

rpm/scitokens-cpp.spec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Requires: %{name}%{?_isa} = %{version}
5656

5757
%files
5858
%{_libdir}/libSciTokens.so.0*
59+
%{_bindir}/scitokens-*
5960
%license LICENSE
6061
%doc README.md
6162

@@ -65,6 +66,8 @@ Requires: %{name}%{?_isa} = %{version}
6566
%dir %{_includedir}/scitokens
6667

6768
%changelog
69+
#- Add scitokens-* binaries to the package
70+
6871
* Fri Sep 03 2021 Dave Dykstra <dwd@fnal.gov> - 0.6.3-1
6972
- Add support for building Debian packages on the OpenSUSE Build System
7073
- Add patch to jwt-cpp to update its picojson dependency in order to

0 commit comments

Comments
 (0)