-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from SoapGentoo/packaging-cleanups
Packaging cleanups
- Loading branch information
Showing
5 changed files
with
112 additions
and
75 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "test/catch"] | ||
path = test/catch | ||
url = https://github.com/philsquared/Catch.git | ||
url = https://github.com/catchorg/Catch2.git |
This file contains 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 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,7 @@ | ||
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ | ||
|
||
Name: @CMAKE_PROJECT_NAME@ | ||
Description: C++ header-only library to encode/decode base64, base64url, base32, base32hex and hex | ||
URL: https://github.com/tplgy/cppcodec | ||
Version: @PROJECT_VERSION@ | ||
Cflags: -I${includedir} |
This file contains 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 |
---|---|---|
@@ -1,5 +1,18 @@ | ||
# For cppcodec itself, don't prefer system headers over development ones. | ||
include_directories(BEFORE ${PROJECT_SOURCE_DIR}) | ||
|
||
find_package(PkgConfig) | ||
if (PKG_CONFIG_FOUND) | ||
pkg_check_modules(CATCH2 catch) | ||
endif() | ||
|
||
if (CATCH2_FOUND) | ||
message(STATUS "Found system Catch2, not using bundled version") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CATCH2_CFLAGS}") | ||
else() | ||
message(STATUS "Did NOT find system Catch2, instead using bundled version") | ||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/catch/single_include) | ||
endif() | ||
|
||
add_executable(test_cppcodec test_cppcodec.cpp) | ||
add_test(cppcodec test_cppcodec) |
This file contains 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