Generate pkg-config file
This commit is contained in:
Vendored
+1
@@ -1 +1,2 @@
|
|||||||
usr/include
|
usr/include
|
||||||
|
usr/lib/*/pkgconfig
|
||||||
|
|||||||
@@ -141,6 +141,7 @@ cp -r mon %buildroot/usr/lib/vitastor
|
|||||||
|
|
||||||
%files -n vitastor-client-devel
|
%files -n vitastor-client-devel
|
||||||
%_includedir/vitastor_c.h
|
%_includedir/vitastor_c.h
|
||||||
|
%_libdir/pkgconfig
|
||||||
|
|
||||||
|
|
||||||
%files -n vitastor-fio
|
%files -n vitastor-fio
|
||||||
|
|||||||
@@ -138,6 +138,7 @@ cp -r mon %buildroot/usr/lib/vitastor
|
|||||||
|
|
||||||
%files -n vitastor-client-devel
|
%files -n vitastor-client-devel
|
||||||
%_includedir/vitastor_c.h
|
%_includedir/vitastor_c.h
|
||||||
|
%_libdir/pkgconfig
|
||||||
|
|
||||||
|
|
||||||
%files -n vitastor-fio
|
%files -n vitastor-fio
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ add_executable(vitastor-cli
|
|||||||
target_link_libraries(vitastor-cli
|
target_link_libraries(vitastor-cli
|
||||||
vitastor_client
|
vitastor_client
|
||||||
)
|
)
|
||||||
|
configure_file(vitastor.pc.in vitastor.pc @ONLY)
|
||||||
|
|
||||||
# vitastor-dump-journal
|
# vitastor-dump-journal
|
||||||
add_executable(vitastor-dump-journal
|
add_executable(vitastor-dump-journal
|
||||||
@@ -248,6 +249,7 @@ install(
|
|||||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||||
)
|
)
|
||||||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/vitastor.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
||||||
if (${WITH_FIO})
|
if (${WITH_FIO})
|
||||||
install(TARGETS fio_vitastor fio_vitastor_blk fio_vitastor_sec LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
install(TARGETS fio_vitastor fio_vitastor_blk fio_vitastor_sec LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||||
endif (${WITH_FIO})
|
endif (${WITH_FIO})
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
prefix=@CMAKE_INSTALL_PREFIX@
|
||||||
|
exec_prefix=${prefix}
|
||||||
|
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
|
||||||
|
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
|
||||||
|
|
||||||
|
|
||||||
|
Name: Vitastor
|
||||||
|
Description: Vitastor client library
|
||||||
|
Version: 0.6.8
|
||||||
|
Libs: -L${libdir} -lvitastor_client
|
||||||
|
Cflags: -I${includedir}
|
||||||
|
|
||||||
Reference in New Issue
Block a user