mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 13:22:11 +00:00
33 lines
836 B
Plaintext
33 lines
836 B
Plaintext
# (C) Copyright Rene Rivera, 2003.
|
|
#
|
|
# See accompanying license for terms and conditions of use.
|
|
#
|
|
|
|
# Example of how to define and depend on a library target.
|
|
# This is for Boost.Build-V1
|
|
|
|
subproject sub ;
|
|
|
|
# Declare an executable target that uses the library.
|
|
# Here the executable has a single source file, but also
|
|
# depends on the above library. Therefore this executable
|
|
# has the additional source file as generated by the library
|
|
# target.
|
|
#
|
|
# This target also specifies the requirement that it be built
|
|
# as multi-threaded. This also forces which variant of the library
|
|
# is used, and in this case, regardless of the build requested on this
|
|
# target.
|
|
#
|
|
exe simple
|
|
:
|
|
# SOURCES
|
|
simple.cpp
|
|
<lib>../sublib/simple
|
|
:
|
|
# REQUIREMENTS
|
|
<threading>multi
|
|
:
|
|
# DEFAULT BUILDS
|
|
;
|