intrusive tests for cmakeland

[SVN r53166]
This commit is contained in:
Troy D. Straszheim
2009-05-21 22:14:19 +00:00
parent bdba161021
commit a2f8aa947f
2 changed files with 25 additions and 9 deletions

View File

@@ -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

23
test/CMakeLists.txt Normal file
View File

@@ -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()