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

Update CMakeLists.txt with snippets for approvaltests and cpm #95

Merged
merged 1 commit into from
Feb 27, 2024
Merged
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
4 changes: 4 additions & 0 deletions ext/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# begin-snippet:cpm_download
message(STATUS "Add CPM.cmake")
# download CPM.cmake
file(
Expand All @@ -7,6 +8,7 @@ file(
EXPECTED_HASH SHA256=11c3fa5f1ba14f15d31c2fb63dbc8628ee133d81c8d764caad9a8db9e0bacb07
)
include(${CMAKE_BINARY_DIR}/cmake/CPM.cmake)
# end-snippet

message(STATUS "Fetching external libraries started")

Expand Down Expand Up @@ -44,10 +46,12 @@ endif ()


if (OALPP_ENABLE_APPROVAL_TESTS)
# begin-snippet:cpm_add_approvaltests
message(STATUS "Fetching approvaltests")
CPMAddPackage(
NAME approvaltests
GITHUB_REPOSITORY approvals/ApprovalTests.cpp
GIT_TAG master
)
# end-snippet
endif ()
Loading