Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/allow nondefault install prefix #86

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 5 additions & 4 deletions extras/curlpp.pc.in
Original file line number Diff line number Diff line change
@@ -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