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
121 changed files
with
188 additions
and
189 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
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
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 @@ | ||
# Chapter 12: Building Documentation | ||
|
||
- [Building documentation using Doxygen](recipe-01/README.md) | ||
- [Building documentation using Sphinx](recipe-02/README.md) | ||
- [Combining Doxygen and Sphinx](recipe-03/README.md) |
2 changes: 1 addition & 1 deletion
2
chapter-15/recipe-01/README.md → chapter-12/recipe-01/README.md
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,4 +1,4 @@ | ||
# Deploying tests to the CDash dashboard | ||
# Building documentation using Doxygen | ||
|
||
Abstract to be written ... | ||
|
||
|
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,29 @@ | ||
cmake_minimum_required(VERSION 3.5 FATAL_ERROR) | ||
|
||
project(recipe-01 LANGUAGES CXX) | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
include(GNUInstallDirs) | ||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}) | ||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}) | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}) | ||
|
||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") | ||
|
||
include(UseDoxygenDoc) | ||
|
||
add_subdirectory(src) | ||
|
||
add_doxygen_doc( | ||
BUILD_DIR | ||
${CMAKE_CURRENT_BINARY_DIR}/_build | ||
DOXY_FILE | ||
${CMAKE_CURRENT_SOURCE_DIR}/docs/Doxyfile.in | ||
TARGET_NAME | ||
docs | ||
COMMENT | ||
"HTML documentation" | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
Building documentation using Doxygen |
2 changes: 1 addition & 1 deletion
2
chapter-15/recipe-02/README.md → chapter-12/recipe-02/README.md
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,35 @@ | ||
cmake_minimum_required(VERSION 3.5 FATAL_ERROR) | ||
|
||
project(recipe-02 LANGUAGES CXX) | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
include(GNUInstallDirs) | ||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}) | ||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}) | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}) | ||
|
||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") | ||
|
||
include(UseSphinxDoc) | ||
|
||
add_subdirectory(src) | ||
|
||
add_sphinx_doc( | ||
SOURCE_DIR | ||
${CMAKE_CURRENT_SOURCE_DIR}/docs | ||
BUILD_DIR | ||
${CMAKE_CURRENT_BINARY_DIR}/_build | ||
CACHE_DIR | ||
${CMAKE_CURRENT_BINARY_DIR}/_doctrees | ||
HTML_DIR | ||
${CMAKE_CURRENT_BINARY_DIR}/sphinx_html | ||
CONF_FILE | ||
${CMAKE_CURRENT_SOURCE_DIR}/docs/conf.py.in | ||
TARGET_NAME | ||
docs | ||
COMMENT | ||
"HTML documentation" | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
chapter-15/recipe-02/cxx-example/menu.yml → chapter-12/recipe-02/cxx-example/menu.yml
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,2 +1,2 @@ | ||
targets: | ||
- test | ||
- docs |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
Building documentation using Sphinx |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
chapter-15/recipe-03/cxx-example/menu.yml → chapter-12/recipe-03/cxx-example/menu.yml
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,2 +1,2 @@ | ||
targets: | ||
- test | ||
- docs |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
Building Documentation |
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,4 @@ | ||
# Chapter 13: Building Documentation | ||
# Chapter 13: Alternative Generators and Cross-compilation | ||
|
||
- [Building documentation using Doxygen](recipe-01/README.md) | ||
- [Building documentation using Sphinx](recipe-02/README.md) | ||
- [Combining Doxygen and Sphinx](recipe-03/README.md) | ||
- [Hello world example](recipe-01/README.md) | ||
- [Cross-compiling a Windows binary with OpenMP parallelization](recipe-02/README.md) |
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,4 +1,4 @@ | ||
# Building documentation using Doxygen | ||
# Hello world example | ||
|
||
Abstract to be written ... | ||
|
||
|
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
File renamed without changes.
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,2 +1,13 @@ | ||
targets: | ||
- docs | ||
- install | ||
|
||
# we only test cross-compilation on linux | ||
travis-osx: | ||
failing_generators: | ||
- 'Unix Makefiles' | ||
- 'Ninja' | ||
|
||
travis-linux: | ||
definitions: | ||
- CMAKE_TOOLCHAIN_FILE: $TRAVIS_BUILD_DIR/chapter-14/toolchain-travis-linux.cmake | ||
- CMAKE_INSTALL_PREFIX: $TRAVIS_BUILD_DIR/../install |
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 +1 @@ | ||
Building documentation using Doxygen | ||
Hello world 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Building documentation using Sphinx | ||
# Cross-compiling a Windows binary with OpenMP parallelization | ||
|
||
Abstract to be written ... | ||
|
||
- [cxx-example](cxx-example/) | ||
- [fortran-example](fortran-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
File renamed without changes.
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,2 +1,13 @@ | ||
targets: | ||
- docs | ||
- install | ||
|
||
# we only test cross-compilation on linux | ||
travis-osx: | ||
failing_generators: | ||
- 'Unix Makefiles' | ||
- 'Ninja' | ||
|
||
travis-linux: | ||
definitions: | ||
- CMAKE_TOOLCHAIN_FILE: $TRAVIS_BUILD_DIR/chapter-14/toolchain-travis-linux.cmake | ||
- CMAKE_INSTALL_PREFIX: $TRAVIS_BUILD_DIR/../install |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 +1 @@ | ||
Building documentation using Sphinx | ||
Cross-compiling a Windows binary with OpenMP parallelization |
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 +1 @@ | ||
Building Documentation | ||
Alternative Generators and Cross-compilation |
File renamed without changes.
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,4 +1,6 @@ | ||
# Chapter 14: Alternative Generators and Cross-compilation | ||
# Chapter 14: Testing Dashboards | ||
|
||
- [Hello world example](recipe-01/README.md) | ||
- [Cross-compiling a Windows binary with OpenMP parallelization](recipe-02/README.md) | ||
- [Deploying tests to the CDash dashboard](recipe-01/README.md) | ||
- [Reporting test coverage to the CDash dashboard](recipe-02/README.md) | ||
- [Using the AddressSanitizer and reporting memory defects to CDash](recipe-03/README.md) | ||
- [Using the ThreadSanitizer and reporting data races to CDash](recipe-04/README.md) |
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,4 +1,4 @@ | ||
# Hello world example | ||
# Deploying tests to the CDash dashboard | ||
|
||
Abstract to be written ... | ||
|
||
|
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
File renamed without changes.
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,13 +1,2 @@ | ||
targets: | ||
- install | ||
|
||
# we only test cross-compilation on linux | ||
travis-osx: | ||
failing_generators: | ||
- 'Unix Makefiles' | ||
- 'Ninja' | ||
|
||
travis-linux: | ||
definitions: | ||
- CMAKE_TOOLCHAIN_FILE: $TRAVIS_BUILD_DIR/chapter-14/toolchain-travis-linux.cmake | ||
- CMAKE_INSTALL_PREFIX: $TRAVIS_BUILD_DIR/../install | ||
- test |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 +1 @@ | ||
Hello world example | ||
Deploying tests to the CDash dashboard |
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,5 @@ | ||
# Cross-compiling a Windows binary with OpenMP parallelization | ||
# Reporting test coverage to the CDash dashboard | ||
|
||
Abstract to be written ... | ||
|
||
- [cxx-example](cxx-example/) | ||
- [fortran-example](fortran-example/) |
Oops, something went wrong.