mirror of
https://github.com/boostorg/pfr.git
synced 2026-01-19 04:22:13 +00:00
24 lines
643 B
CMake
24 lines
643 B
CMake
# Copyright 2020 Peter Dimov
|
|
# Copyright (c) 2016-2024 Antony Polukhin
|
|
#
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
# https://www.boost.org/LICENSE_1_0.txt
|
|
|
|
cmake_minimum_required(VERSION 3.5...3.16)
|
|
|
|
project(boost_pfr VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
|
|
|
|
add_library(boost_pfr INTERFACE)
|
|
add_library(Boost::pfr ALIAS boost_pfr)
|
|
|
|
target_include_directories(boost_pfr INTERFACE include)
|
|
|
|
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.28.0" AND BUILD_MODULE)
|
|
add_subdirectory(module)
|
|
endif()
|
|
|
|
if (BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
|
|
add_subdirectory(test)
|
|
endif()
|
|
|