1 | #include <string>
|
---|
2 | #include <iostream>
|
---|
3 |
|
---|
4 | #define PREFIX "/usr"
|
---|
5 | #define LIBDIR "/usr/lib"
|
---|
6 |
|
---|
7 | #define BOOST_PKG_CONFIG_DUMP
|
---|
8 | #include TEST_HEADER
|
---|
9 |
|
---|
10 | int main()
|
---|
11 | {
|
---|
12 | std::cout << "prefix=" << PREFIX << std::endl;
|
---|
13 | std::cout << "exec_prefix=${prefix}" << std::endl;
|
---|
14 | std::cout << "libdir=" << LIBDIR << std::endl;
|
---|
15 | std::cout << "includedir=${prefix}/include" << std::endl;
|
---|
16 | std::cout << std::endl;
|
---|
17 | std::cout << "Name: " << TEST_LIBRARY << std::endl;
|
---|
18 | std::cout << "Description: Boost C++ libraries (" << TEST_LIBRARY << ")" << std::endl;
|
---|
19 | std::cout << "Version: "
|
---|
20 | << BOOST_VERSION / 100000 << "."
|
---|
21 | << BOOST_VERSION / 100 % 1000 << "."
|
---|
22 | << BOOST_VERSION % 100 << std::endl;
|
---|
23 | std::cout << "Libs: -L${libdir}";
|
---|
24 | for (std::vector<std::string>::const_iterator i = boost::pkg_config::library_list::list.begin();
|
---|
25 | i != boost::pkg_config::library_list::list.end();
|
---|
26 | ++i)
|
---|
27 | std::cout << " -l" << *i;
|
---|
28 | std::cout << std::endl;
|
---|
29 | std::cout << "Cflags: -I${includedir}" << std::endl;
|
---|
30 | }
|
---|