Skip to content
Snippets Groups Projects
Commit 67a15924 authored by Thomas White's avatar Thomas White
Browse files

Add pkg-config files for consumer and producer APIs

parent be0b5142
Branches twhite/pkgconfig
No related tags found
No related merge requests found
......@@ -10,3 +10,8 @@ endif()
if(BUILD_CONSUMER_TOOLS)
add_subdirectory(tools)
endif()
include(GNUInstallDirs)
configure_file(libasapo-consumer.pc.in libasapo-consumer.pc)
install(FILES ${CMAKE_BINARY_DIR}/consumer/libasapo-consumer.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
prefix=${CMAKE_INSTALL_PREFIX}
exec_prefix=${CMAKE_INSTALL_PREFIX}
libdir=${CMAKE_INSTALL_FULL_LIBDIR}
includedir=${CMAKE_INSTALL_FULL_INCLUDEDIR}
Name: libasapo-consumer
Description: ASAP::O consumer API
Version: ${ASAPO_CONSUMER_PROTOCOL}
Cflags: -I${CMAKE_INSTALL_FULL_INCLUDEDIR}
Libs: -L${CMAKE_INSTALL_FULL_LIBDIR} -lasapo-consumer -lasapo-fabric
Libs.private: -lcurl -lstdc++ -lpthread
......@@ -7,3 +7,8 @@ endif()
if(BUILD_EVENT_MONITOR_PRODUCER)
add_subdirectory(event_monitor_producer)
endif(BUILD_EVENT_MONITOR_PRODUCER)
include(GNUInstallDirs)
configure_file(libasapo-producer.pc.in libasapo-producer.pc)
install(FILES ${CMAKE_BINARY_DIR}/producer/libasapo-producer.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
prefix=${CMAKE_INSTALL_PREFIX}
exec_prefix=${CMAKE_INSTALL_PREFIX}
libdir=${CMAKE_INSTALL_FULL_LIBDIR}
includedir=${CMAKE_INSTALL_FULL_INCLUDEDIR}
Name: libasapo-producer
Description: ASAP::O producer API
Version: ${ASAPO_PRODUCER_PROTOCOL}
Cflags: -I${CMAKE_INSTALL_FULL_INCLUDEDIR}
Libs: -L${CMAKE_INSTALL_FULL_LIBDIR} -lasapo-producer -lasapo-fabric
Libs.private: -lcurl -lstdc++ -lpthread
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment