Skip to content
ruslo edited this page Nov 11, 2013 · 6 revisions

version file

  • versions.cmake in HUNTER_ROOT directory
include(hunter_project)

hunter_project(boost VERSION 1.52)
hunter_project(gtest VERSION 1.7.0)
hunter_project(gmock CUSTOM /path/to/gmock/install)

use

  • CMakeLists.txt
include($ENV{HUNTER_ROOT}/cmake/Hunter)
include(hunter_add_project)

hunter_add_project(gtest)
hunter_add_project(boost COMPONENTS system filesystem)

find_package(GTest REQUIRED) # use downloaded

Clone this wiki locally