diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index b32f9ae..2193199 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -19,6 +19,8 @@ foreach(Example ${ExamplesFileList}) get_filename_component(ExampleName ${Example} NAME_WE) # Define example executable add_executable(${ExampleName} ${Example}) + # Add curlpp include dir + target_include_directories(${ExampleName} PRIVATE ${CURLPP_INCLUDE_DIRS}) # Link example against curlpp target_link_libraries(${ExampleName} ${CURLPP_LDFLAGS}) # make the meta target depend on this example. diff --git a/extras/curlpp.pc.in b/extras/curlpp.pc.in index b040ee0..336b82e 100644 --- a/extras/curlpp.pc.in +++ b/extras/curlpp.pc.in @@ -1,13 +1,14 @@ # This is a comment prefix=@prefix@ -exec_prefix=@prefix@ -includedir=@includedir@ +exec_prefix=${prefix} +includedir=${prefix}/@includedir@ +libdir=${prefix}/@libdir@ Name: curlpp Description: cURLpp is a libcurl C++ wrapper Version: @VERSION@ -Libs: -L@libdir@ -lcurlpp @LDFLAGS@ @LIBS@ -Cflags: -I@includedir@ @CURLPP_CXXFLAGS@ +Libs: -L${libdir} -lcurlpp @LDFLAGS@ @LIBS@ +Cflags: -I${includedir} @CURLPP_CXXFLAGS@ # libcurl is required as non-private because CurlHandle.inl uses curl_easy_setopt. Requires: libcurl