summaryrefslogtreecommitdiffstats
path: root/Tests/FindBoost/TestHeaders
diff options
context:
space:
mode:
authorRoger Leigh <r.leigh@dundee.ac.uk>2016-04-17 15:24:51 (GMT)
committerRoger Leigh <r.leigh@dundee.ac.uk>2016-04-19 21:07:45 (GMT)
commit2c1b720e643aafd725a8c0be11913834704d7269 (patch)
tree99f5db85aeb07ccab6b934aa54e56a2d224e11f0 /Tests/FindBoost/TestHeaders
parent7d4c99a957b37e6905af3fe6ea96b7fdf2b8359c (diff)
downloadCMake-2c1b720e643aafd725a8c0be11913834704d7269.zip
CMake-2c1b720e643aafd725a8c0be11913834704d7269.tar.gz
CMake-2c1b720e643aafd725a8c0be11913834704d7269.tar.bz2
FindBoost: Define Boost::boost for all boost versions
Diffstat (limited to 'Tests/FindBoost/TestHeaders')
-rw-r--r--Tests/FindBoost/TestHeaders/CMakeLists.txt10
-rw-r--r--Tests/FindBoost/TestHeaders/main.cxx9
2 files changed, 19 insertions, 0 deletions
diff --git a/Tests/FindBoost/TestHeaders/CMakeLists.txt b/Tests/FindBoost/TestHeaders/CMakeLists.txt
new file mode 100644
index 0000000..d7be327
--- /dev/null
+++ b/Tests/FindBoost/TestHeaders/CMakeLists.txt
@@ -0,0 +1,10 @@
+cmake_minimum_required(VERSION 3.1)
+project(TestFindBoostHeaders CXX)
+include(CTest)
+
+find_package(Boost REQUIRED)
+
+add_executable(test_boost_headers_tgt main.cxx)
+target_link_libraries(test_boost_headers_tgt
+ Boost::boost)
+add_test(NAME test_boost_headers_tgt COMMAND test_boost_headers_tgt)
diff --git a/Tests/FindBoost/TestHeaders/main.cxx b/Tests/FindBoost/TestHeaders/main.cxx
new file mode 100644
index 0000000..0400d6d
--- /dev/null
+++ b/Tests/FindBoost/TestHeaders/main.cxx
@@ -0,0 +1,9 @@
+#include <boost/any.hpp>
+
+int main() {
+ boost::any a;
+ a = 5;
+ a = std::string("A string");
+
+ return 0;
+}