-
Notifications
You must be signed in to change notification settings - Fork 21
src/CMakeLists.txt: modernize CMake build system and fix package config #45
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
Closed
+96
−29
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9789420
src/CMakeLists.txt: modernize CMake build system and fix package config
luadebug 5386187
add CMake package config template for proper dependency handling
luadebug ad00382
Enhance CMake configuration to support dynamic linking with libcurl a…
luadebug f7083b4
Add pthread fix
luadebug 1481cac
fixup
luadebug aadc29e
Add check for CURL::libcurl target in CMake
luadebug caebcfe
Update zoeConfig.cmake.in
luadebug 6730dad
Update zoeConfig.cmake.in
luadebug 5ca48c9
fixup
luadebug 2622b9f
Resolve review?
luadebug 6c266dd
improve .pc.in
luadebug 6f76eac
Use -pthread instead
luadebug 4310302
Update src/CMakeLists.txt
luadebug 1169bd4
Update src/CMakeLists.txt
luadebug f43e62d
Keep just zoe.pc as .pc filename
luadebug File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| prefix=@CMAKE_INSTALL_PREFIX@ | ||
| exec_prefix=${prefix} | ||
| libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ | ||
| includedir=${prefix}/include | ||
|
|
||
| Name: @PROJECT_NAME@ | ||
| Description: A high-performance C++ file download library. | ||
| URL: https://github.com/winsoft666/zoe | ||
| Version: @PROJECT_VERSION@ | ||
| Conflicts: | ||
| Libs: -L${libdir} -l@ZOE_LIB_NAME@ @ZOE_LIBS@ | ||
| Libs.private: @ZOE_PRIVATE_LIBS@ | ||
| Cflags: -I${includedir} | ||
| Requires: | ||
| Requires.private: @ZOE_REQUIRES@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| @PACKAGE_INIT@ | ||
|
|
||
| if(NOT "@ZOE_BUILD_SHARED_LIBS@") | ||
| include(CMakeFindDependencyMacro) | ||
| find_dependency(CURL) | ||
| if("@OpenSSL_FOUND@") | ||
| find_dependency(OpenSSL) | ||
| endif() | ||
| find_dependency(Threads) | ||
| endif() | ||
|
|
||
| include("${CMAKE_CURRENT_LIST_DIR}/zoeTargets.cmake") |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.