1 # Copyright 2019 Peter Dimov
2 # Distributed under the Boost Software License, Version 1.0.
3 # See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
5 cmake_minimum_required(VERSION 3.5...3.16)
7 project(boost_endian VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
9 add_library(boost_endian INTERFACE)
10 add_library(Boost::endian ALIAS boost_endian)
12 target_include_directories(boost_endian INTERFACE include)
14 target_link_libraries(boost_endian
22 if(BOOST_SUPERPROJECT_VERSION)
25 boost_install(TARGETS boost_endian HEADER_DIRECTORY include/)
31 add_subdirectory(test)