# Copyright (c) 2013, Ruslan Baratov
# Modified work: Copyright (c) 2018, Gregory Kramida
# All rights reserved.

cmake_minimum_required(VERSION 3.2)
option(HUNTER_BUILD_SHARED_LIBS "..." ON)

# Configure:
set(REQUESTED_PYTHON_VERSION 3.6.7)
set(TESTING_CONFIG_OPT FILEPATH "${CMAKE_CURRENT_LIST_DIR}/config.cmake")

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

project(download-boost)

# Requires python version 3.6.7. Change this in config.cmake if necessary.
hunter_add_package(Boost COMPONENTS python)
find_package(Boost CONFIG REQUIRED python36)
find_package(PythonLibs ${REQUESTED_PYTHON_VERSION} EXACT REQUIRED)

add_library(foo foo.cpp)
target_link_libraries(
    foo
    PUBLIC
    Boost::python36
)
target_include_directories(
  foo
  PUBLIC
  ${PYTHON_INCLUDE_DIR}
)

# Copyright (c) 2013, Ruslan Baratov
# Modified work: Copyright (c) 2018, Gregory Kramida
# All rights reserved.

cmake_minimum_required(VERSION 3.2)
option(HUNTER_BUILD_SHARED_LIBS "..." ON)

# Configure:
set(REQUESTED_PYTHON_VERSION 3.5)
set(TESTING_CONFIG_OPT FILEPATH "${CMAKE_CURRENT_LIST_DIR}/config.cmake")

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

project(download-boost)

# Requires python version 3.6.7. Change this in config.cmake if necessary.
hunter_add_package(Boost COMPONENTS python)
find_package(Boost CONFIG REQUIRED python35)
find_package(PythonLibs ${REQUESTED_PYTHON_VERSION} EXACT REQUIRED)

add_library(foo foo.cpp)
target_link_libraries(
    foo
    PUBLIC
    Boost::python35
)
target_include_directories(
  foo
  PUBLIC
  ${PYTHON_INCLUDE_DIR}
)

Use Python 3.5 in Boost-python example
Use Python 3.5 in Boost-python example

For Travis CI:
* https://travis-ci.org/ingenue/hunter/builds/469721022#L671
* https://travis-ci.org/ingenue/hunter/builds/469721022#L1111
