# Copyright (c) 2016-2018, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)

# Emulate HunterGate:
# * https://github.com/hunter-packages/gate
include("../common.cmake")

project(download-foo)

# DOCUMENTATION_START {
hunter_add_package(foo)
find_package(foo CONFIG REQUIRED)

add_executable(boo boo.cpp)
target_link_libraries(boo PUBLIC foo::foo)
# DOCUMENTATION_END }

# Copyright (c) 2016-2018, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.2)

# Emulate HunterGate:
# * https://github.com/hunter-packages/gate
include("../common.cmake")

project(download-foo)

# DOCUMENTATION_START {
hunter_add_package(foo)
find_package(foo CONFIG REQUIRED)

add_executable(boo boo.cpp)
target_link_libraries(boo PUBLIC foo::foo)
# DOCUMENTATION_END }

Update cmake_minimum_required in example template
Update cmake_minimum_required in example template
