Add example Jamfile

This commit is contained in:
Vinnie Falco 2019-11-16 04:37:37 -08:00
parent 058209acb9
commit 365b32a5fa
4 changed files with 18 additions and 24 deletions

View File

@ -10,3 +10,4 @@
path-constant LIB_DIR : . ;
build-project test ;
build-project example ;

View File

@ -14,9 +14,3 @@ add_executable (pretty
pretty.cpp
)
set_property(TARGET pretty PROPERTY FOLDER "example")
add_executable (allocator
file.hpp
allocator.cpp
)
set_property(TARGET allocator PROPERTY FOLDER "example")

17
example/Jamfile Normal file
View File

@ -0,0 +1,17 @@
#
# Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
#
# 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)
#
# Official repository: https://github.com/vinniefalco/json
#
import ../../config/checks/config : requires ;
exe pretty :
pretty.cpp
:
<toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
<library>/boost/json//boost_json
;

View File

@ -1,18 +0,0 @@
//
// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
//
// 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)
//
// Official repository: https://github.com/vinniefalco/json
//
/*
This example implements a custom storage adaptor
which uses any standard C++ allocator.
*/
int
main()
{
}