Files
boost_preprocessor/CMakeLists.txt
T

25 lines
662 B
CMake
Raw Normal View History

2020-01-05 04:32:16 +02:00
# Copyright 2019 Peter Dimov
2018-09-17 11:20:51 +02:00
# Distributed under the Boost Software License, Version 1.0.
# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
2020-01-05 04:32:16 +02:00
cmake_minimum_required(VERSION 3.5...3.16)
project(boost_preprocessor VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
2018-09-17 11:20:51 +02:00
add_library(boost_preprocessor INTERFACE)
add_library(Boost::preprocessor ALIAS boost_preprocessor)
target_include_directories(boost_preprocessor INTERFACE include)
2020-01-05 04:32:16 +02:00
if(BOOST_SUPERPROJECT_VERSION)
include(BoostInstall)
boost_install(TARGETS boost_preprocessor HEADER_DIRECTORY include/)
endif()
if(BUILD_TESTING)
add_subdirectory(test)
endif()