forked from dev-cafe/cmake-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
53 additions
and
5 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,5 +1,9 @@ | ||
# Using the superbuild pattern | ||
|
||
Abstract to be written ... | ||
This recipe introduces the superbuild pattern with a very simple example. We | ||
will show how to use the | ||
[ExternalProject_Add](https://cmake.org/cmake/help/latest/module/ExternalProject.html) | ||
command to build a simple "Hello, World" program. | ||
|
||
|
||
- [cxx-example](cxx-example/) |
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,4 @@ | ||
This recipe introduces the superbuild pattern with a very simple example. We | ||
will show how to use the | ||
[ExternalProject_Add](https://cmake.org/cmake/help/latest/module/ExternalProject.html) | ||
command to build a simple "Hello, World" program. |
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,9 @@ | ||
# Managing dependencies with a superbuild: I. The Boost libraries | ||
|
||
Abstract to be written ... | ||
This recipe shows how to leverage the superbuild pattern to ship your code with | ||
the confidence that a missing dependency will not stop the configuration. We | ||
will reuse the code example from [Recipe 8 in Chapter | ||
3](../../chapter-03/recipe-08), but reorganize it in the form of a superbuild. | ||
|
||
|
||
- [cxx-example](cxx-example/) |
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,4 @@ | ||
This recipe shows how to leverage the superbuild pattern to ship your code with | ||
the confidence that a missing dependency will not stop the configuration. We | ||
will reuse the code example from [Recipe 8 in Chapter | ||
3](../../chapter-03/recipe-08), but reorganize it in the form of a superbuild. |
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,8 @@ | ||
# Managing dependencies with a superbuild: II. The FFTW library | ||
|
||
Abstract to be written ... | ||
In this recipe we show | ||
how to download, build, and install the | ||
[FFTW library](http://www.fftw.org) using a superbuild. | ||
|
||
|
||
- [c-example](c-example/) |
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,3 @@ | ||
In this recipe we show | ||
how to download, build, and install the | ||
[FFTW library](http://www.fftw.org) using a superbuild. |
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,6 +1,14 @@ | ||
# Managing dependencies with a superbuild: III. The Google Test framework | ||
|
||
Abstract to be written ... | ||
In this recipe we reuse the code from [Recipe 3 in Chapter 4](../../chapter-04/recipe-03) | ||
and fetch and build the [Google Test](https://github.com/google/googletest) framework | ||
using [FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html), | ||
which provides a compact and | ||
versatile module to assemble project dependencies at configure time. For additional insight | ||
and for CMake below 3.11, we will also discuss how to emulate [FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html) using | ||
[ExternalProject_Add](https://cmake.org/cmake/help/latest/module/ExternalProject_Add.html) | ||
at configure time. | ||
|
||
|
||
- [cxx-example](cxx-example/) | ||
- [cxx-example-3.5](cxx-example-3.5/) |
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,8 @@ | ||
In this recipe we reuse the code from [Recipe 3 in Chapter 4](../../chapter-04/recipe-03) | ||
and fetch and build the [Google Test](https://github.com/google/googletest) framework | ||
using [FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html), | ||
which provides a compact and | ||
versatile module to assemble project dependencies at configure time. For additional insight | ||
and for CMake below 3.11, we will also discuss how to emulate [FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html) using | ||
[ExternalProject_Add](https://cmake.org/cmake/help/latest/module/ExternalProject_Add.html) | ||
at configure time. |
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,10 @@ | ||
# Managing your project as a superbuild | ||
|
||
Abstract to be written ... | ||
This recipe shows how to use | ||
[ExternalProject_Add](https://cmake.org/cmake/help/latest/module/ExternalProject_Add.html) | ||
to handle dependencies available from open source Git repositories. | ||
|
||
As an example we will build a project which depends on https://github.com/dev-cafe/message. | ||
|
||
|
||
- [cxx-example](cxx-example/) |
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,5 @@ | ||
This recipe shows how to use | ||
[ExternalProject_Add](https://cmake.org/cmake/help/latest/module/ExternalProject_Add.html) | ||
to handle dependencies available from open source Git repositories. | ||
|
||
As an example we will build a project which depends on https://github.com/dev-cafe/message. |