Crascit / DownloadProject

This repository is no longer maintained. Use the FetchContent module available in CMake 3.11 or later instead.

Home Page:https://cmake.org/cmake/help/latest/module/FetchContent.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DownloadProject

Platform Build status
Linux
Mac OSX
Build Status
Windows (VS2015) Build status

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 as the example, downloading and building trivial gtest and gmock test cases to show the technique.

About

This repository is no longer maintained. Use the FetchContent module available in CMake 3.11 or later instead.

https://cmake.org/cmake/help/latest/module/FetchContent.html

License:MIT License


Languages

Language:CMake 90.7%Language:C++ 9.3%