diff options
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | QMatrixClient.pc.in | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fa48db03..8da079d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -147,6 +147,7 @@ target_link_libraries(QMatrixClient Qt5::Core Qt5::Network Qt5::Gui) add_executable(qmc-example ${example_SRCS}) target_link_libraries(qmc-example Qt5::Core QMatrixClient) +configure_file(QMatrixClient.pc.in ${CMAKE_CURRENT_BINARY_DIR}/QMatrixClient.pc @ONLY NEWLINE_STYLE UNIX) # Installation @@ -189,3 +190,4 @@ if (WIN32) endif (WIN32) install(TARGETS qmc-example RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/QMatrixClient.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) diff --git a/QMatrixClient.pc.in b/QMatrixClient.pc.in new file mode 100644 index 00000000..efd54b57 --- /dev/null +++ b/QMatrixClient.pc.in @@ -0,0 +1,10 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=${prefix} +includedir=@INCLUDE_INSTALL_DIR@ +libdir=@LIB_INSTALL_DIR@ + +Name: QMatrixClient +Description: A Qt5 library to write cross-platfrom clients for Matrix +Version: @API_VERSION@ +Cflags: -I${includedir} +Libs: -L${libdir} -lQMatrixClient |