Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53166 - in branches/release/libs/intrusive: . test
From: troy_at_[hidden]
Date: 2009-05-21 18:14:20


Author: troy
Date: 2009-05-21 18:14:19 EDT (Thu, 21 May 2009)
New Revision: 53166
URL: http://svn.boost.org/trac/boost/changeset/53166

Log:
intrusive tests for cmakeland
Added:
   branches/release/libs/intrusive/test/CMakeLists.txt (contents, props changed)
Text files modified:
   branches/release/libs/intrusive/CMakeLists.txt | 11 ++---------
   1 files changed, 2 insertions(+), 9 deletions(-)

Modified: branches/release/libs/intrusive/CMakeLists.txt
==============================================================================
--- branches/release/libs/intrusive/CMakeLists.txt (original)
+++ branches/release/libs/intrusive/CMakeLists.txt 2009-05-21 18:14:19 EDT (Thu, 21 May 2009)
@@ -1,17 +1,10 @@
-#----------------------------------------------------------------------------
-# This file was automatically generated from the original CMakeLists.txt file
-# Add a variable to hold the headers for the library
-set (lib_headers
- intrusive_ptr.hpp
- intrusive
-)
 
 # Add a library target to the build system
 boost_library_project(
   intrusive
   # SRCDIRS
- # TESTDIRS
- HEADERS ${lib_headers}
+ TESTDIRS test
+ HEADERS intrusive_ptr.hpp intrusive
   # DOCDIRS
   # DESCRIPTION
   MODULARIZED

Added: branches/release/libs/intrusive/test/CMakeLists.txt
==============================================================================
--- (empty file)
+++ branches/release/libs/intrusive/test/CMakeLists.txt 2009-05-21 18:14:19 EDT (Thu, 21 May 2009)
@@ -0,0 +1,23 @@
+# Boost Intrusive Library Test Jamfile
+# (C) Copyright Ion Gaztanaga 2006.
+# Use, modification and distribution are subject to 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)
+
+# Adapted from John Maddock's TR1 Jamfile.v2
+# Copyright John Maddock 2005.
+# Use, modification and distribution are subject to 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)
+
+# this rule enumerates through all the sources and invokes
+# the run rule for each source, the result is a list of all
+# the run rules, which we can pass on to the test_suite rule:
+
+file(GLOB SRCFILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
+
+foreach(testfile ${SRCFILES})
+ get_filename_component(testname ${testfile} NAME_WE)
+ boost_test_run(${testname})
+endforeach()
+


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk