Skip to content

gregoire-astruc/cmake-external-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Demonstration of CMake ExternalProject capabilities

Using the SuperBuild pattern, the root CMakeLists.txt treats everything as an external project, even the local one.

However, the local one (called demo) is fetched from directly from the source directory, while the other external dependencies (libpng and zlib) are downloaded, built and installed.

With this strategy, the demo/CMakeLists.txt file is kept rather clean using only standard CMake find_package. But since the CMAKE_PREFIX_PATH is set to point to the downloaded and compiled libraries, it will prefer those over the system ones (if any).

About

Demo usage of CMake ExternalProject with SuperBuild pattern.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages