diff --git a/CMakeLists.txt b/CMakeLists.txt index e66a49e..a87de1c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -231,6 +231,11 @@ set(prefix ${CMAKE_INSTALL_PREFIX}) set(exec_prefix "\${prefix}") set(libdir ${CMAKE_INSTALL_LIBDIR}) set(includedir "\${prefix}/include") +if(WIN32) + get_target_property(SIMPLEAMQPCLIENT_LIB SimpleAmqpClient OUTPUT_NAME) +else(WIN32) + set(SIMPLEAMQPCLIENT_LIB SimpleAmqpClient) +endif(WIN32) foreach(_lib ${Boost_LIBRARIES}) get_filename_component(_LIBPATH ${_lib} PATH) diff --git a/libSimpleAmqpClient.pc.in b/libSimpleAmqpClient.pc.in index 46bdb3e..51340aa 100644 --- a/libSimpleAmqpClient.pc.in +++ b/libSimpleAmqpClient.pc.in @@ -7,6 +7,6 @@ Name: SimpleAmqpClient Description: C++ wrapper of rabbitmq-c AMQP client library Version: @SAC_APIVERSION@ Requires.private: librabbitmq -Libs: -L${libdir} -lSimpleAmqpClient +Libs: -L${libdir} -l@SIMPLEAMQPCLIENT_LIB@ Libs.private: @libs_private@ -CFlags: -I${includedir} +CFlags: -I${includedir} -I@Boost_INCLUDE_DIRS@