parent
137365b5b3
commit
3d4aad9e0d
5 changed files with 34 additions and 9 deletions
@ -1,11 +1,14 @@ |
||||
project('boosttest', 'cxx') |
||||
|
||||
# Use a Boost module that requires a shared library. |
||||
# Eventually we would like to be able to detect Boost |
||||
# multiple times with different library combinations. |
||||
# We want to have multiple separate configurations of Boost |
||||
# within one project. The need to be independent of each other. |
||||
# Use one without a library dependency and one with it. |
||||
|
||||
nolinkdep = find_dep('boost', modules: 'utility', required : true) |
||||
linkdep = find_dep('boost', modules : 'thread', required : true) |
||||
|
||||
nolinkexe = executable('nolinkedexe', 'nolinkexe.cc', deps : nolinkdep) |
||||
linkexe = executable('linkedexe', 'linkexe.cc', deps : linkdep) |
||||
|
||||
add_test('Boost nolinktext', nolinkexe) |
||||
add_test('Boost linktext', linkexe) |
||||
|
@ -0,0 +1,12 @@ |
||||
#include<boost/utility.hpp> |
||||
|
||||
class MyClass : boost::noncopyable { |
||||
public: |
||||
MyClass() {}; |
||||
~MyClass() {}; |
||||
}; |
||||
|
||||
int main(int argc, char **argv) { |
||||
MyClass obj; |
||||
return 0; |
||||
} |
Loading…
Reference in new issue