-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update CPM.cmake and use new shorthand syntax (#87)
- Loading branch information
1 parent
573663d
commit 27c17d6
Showing
4 changed files
with
6 additions
and
19 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 |
---|---|---|
|
@@ -24,17 +24,13 @@ endif() | |
include(cmake/CPM.cmake) | ||
|
||
# PackageProject.cmake will be used to make our target installable | ||
CPMAddPackage( | ||
NAME PackageProject.cmake | ||
GITHUB_REPOSITORY TheLartians/PackageProject.cmake | ||
VERSION 1.5.0 | ||
) | ||
CPMAddPackage("gh:TheLartians/[email protected]") | ||
|
||
CPMAddPackage( | ||
NAME fmt | ||
GIT_TAG 7.1.3 | ||
GITHUB_REPOSITORY fmtlib/fmt # to get an installable target | ||
OPTIONS "FMT_INSTALL YES" | ||
GITHUB_REPOSITORY fmtlib/fmt | ||
OPTIONS "FMT_INSTALL YES" # create an installable target | ||
) | ||
|
||
# ---- Add source files ---- | ||
|
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 |
---|---|---|
|
@@ -10,12 +10,7 @@ include(../cmake/tools.cmake) | |
|
||
include(../cmake/CPM.cmake) | ||
|
||
CPMAddPackage( | ||
NAME cxxopts | ||
GITHUB_REPOSITORY jarro2783/cxxopts | ||
VERSION 2.2.0 | ||
OPTIONS "CXXOPTS_BUILD_EXAMPLES Off" "CXXOPTS_BUILD_TESTS Off" | ||
) | ||
CPMAddPackage("gh:jarro2783/[email protected]") | ||
|
||
CPMAddPackage(NAME Greeter SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/..) | ||
|
||
|
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