mirror of
https://github.com/boostorg/boost_install.git
synced 2026-01-21 16:52:17 +00:00
20 lines
640 B
CMake
20 lines
640 B
CMake
# Copyright 2018 Peter Dimov
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
|
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
project(CmakeConfigPythonTest LANGUAGES CXX)
|
|
|
|
find_package(PythonLibs 2.7 REQUIRED)
|
|
find_package(boost_python 1.69.0 EXACT CONFIG REQUIRED)
|
|
|
|
add_executable(main quick.cpp)
|
|
target_link_libraries(main Boost::python ${PYTHON_LIBRARIES})
|
|
target_include_directories(main PRIVATE ${PYTHON_INCLUDE_DIRS})
|
|
|
|
enable_testing()
|
|
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>)
|
|
|
|
add_test(main main)
|