Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Crascit/DownloadProject
This repository is no longer maintained. Use the FetchContent module available in CMake 3.11 or later instead.
https://github.com/Crascit/DownloadProject
cmake
Last synced: about 2 months ago
JSON representation
This repository is no longer maintained. Use the FetchContent module available in CMake 3.11 or later instead.
- Host: GitHub
- URL: https://github.com/Crascit/DownloadProject
- Owner: Crascit
- License: mit
- Archived: true
- Created: 2015-12-05T00:55:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-10-07T04:17:36.000Z (9 months ago)
- Last Synced: 2024-02-01T16:09:03.407Z (5 months ago)
- Topics: cmake
- Language: CMake
- Homepage: https://cmake.org/cmake/help/latest/module/FetchContent.html
- Size: 18.6 KB
- Stars: 443
- Watchers: 29
- Forks: 94
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-cmake - DownloadProject - CMake module for downloading an external project's source at configure time. [```[MIT]```][MIT] (Utility Scripts)
README
# DownloadProject
Platform | Build status
---------|-------------:
Linux
Mac OSX | [![Build Status](https://travis-ci.org/Crascit/DownloadProject.svg?branch=master)](https://travis-ci.org/Crascit/DownloadProject)
Windows (VS2015) | [![Build status](https://ci.appveyor.com/api/projects/status/1qdjq4fpef25tftw/branch/master?svg=true)](https://ci.appveyor.com/project/Crascit/downloadproject/branch/master)This repository contains a generalized implementation for downloading an
external project's source at CMake's configure step rather than as part
of the main build. The primary advantage of this is that the project's source
code can then be included directly in the main CMake build using the
add_subdirectory() command, making all of the external project's targets,
etc. available without any further effort. The technique is fully explained
in the article available at:https://crascit.com/2015/07/25/cmake-gtest/
An example as described in that article is provided here to demonstrate
how to use the DownloadProject module. It uses [googletest][1] as the
example, downloading and building trivial gtest and gmock test cases
to show the technique.[1]: https://github.com/google/googletest