Added a pkg-config file.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2019-07-29 04:01:47 +02:00
parent f44830474a
commit bdf8883d58
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
3 changed files with 19 additions and 1 deletions

13
remwharead.pc.in Normal file
View File

@ -0,0 +1,13 @@
name=@PROJECT_NAME@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
Name: ${name}
Description: Saves, archives and retrieves URIs of things you want to remember.
Version: @PROJECT_VERSION@
Libs: -L${libdir} -l${name}
Cflags: -I${includedir}/${name}
Requires.private: curlpp sqlite3 libxdg-basedir icu-uc icu-i18n
Libs.private: -lvsqlitepp

View File

@ -35,3 +35,8 @@ install(FILES ${headers_lib}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME})
install(FILES ${headers_lib_export}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}/export)
configure_file("${PROJECT_SOURCE_DIR}/remwharead.pc.in"
"${CMAKE_CURRENT_BINARY_DIR}/remwharead.pc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/remwharead.pc"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")

View File

@ -29,7 +29,7 @@
* #include <remwharead/remwharead.hpp>
* @endcode
*
* Compile your code with `g++ -lremwharead`.
* Compile your code with `g++ $(pkg-config --cflags --libs remwharead)`.
*/
#include "export/adoc.hpp"