Add CMake install support, tests

This commit is contained in:
Peter Dimov
2020-01-05 03:29:05 +02:00
parent 816c7597e3
commit 3a50c15a97
11 changed files with 178 additions and 41 deletions
+13 -1
View File
@@ -13,7 +13,6 @@
#define BOOST_ENDIAN_DEPRECATED_NAMES
#include <boost/endian/endian.hpp>
#include <boost/detail/lightweight_main.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/cstdint.hpp>
#include <iostream>
@@ -181,4 +180,17 @@ int cpp_main(int, char *[])
return ::boost::report_errors();
}
int main( int argc, char* argv[] )
{
try
{
return cpp_main( argc, argv );
}
catch( std::exception const & x )
{
BOOST_ERROR( x.what() );
return boost::report_errors();
}
}
#include <boost/endian/detail/disable_warnings_pop.hpp>