Boost logo

Boost-Commit :

From: dgregor_at_[hidden]
Date: 2007-06-04 23:41:06


Author: dgregor
Date: 2007-06-04 23:41:04 EDT (Mon, 04 Jun 2007)
New Revision: 4443
URL: http://svn.boost.org/trac/boost/changeset/4443

Log:
CMake testing for Typeof library

Added:
   sandbox-branches/boost-cmake/boost_1_34_0/libs/typeof/CMakeLists.txt
   sandbox-branches/boost-cmake/boost_1_34_0/libs/typeof/test/CMakeLists.txt
Text files modified:
   sandbox-branches/boost-cmake/boost_1_34_0/TODO | 2 --
   1 files changed, 0 insertions(+), 2 deletions(-)

Modified: sandbox-branches/boost-cmake/boost_1_34_0/TODO
==============================================================================
--- sandbox-branches/boost-cmake/boost_1_34_0/TODO (original)
+++ sandbox-branches/boost-cmake/boost_1_34_0/TODO 2007-06-04 23:41:04 EDT (Mon, 04 Jun 2007)
@@ -26,6 +26,4 @@
 
 - Testing for the Statechart library
 
-- Testing for the typeof library
-
 - Xpressive: port multipledefs and msvc-stlport tests

Added: sandbox-branches/boost-cmake/boost_1_34_0/libs/typeof/CMakeLists.txt
==============================================================================
--- (empty file)
+++ sandbox-branches/boost-cmake/boost_1_34_0/libs/typeof/CMakeLists.txt 2007-06-04 23:41:04 EDT (Mon, 04 Jun 2007)
@@ -0,0 +1,4 @@
+boost_library_project(
+ Typeof
+ TESTDIRS test
+ )
\ No newline at end of file

Added: sandbox-branches/boost-cmake/boost_1_34_0/libs/typeof/test/CMakeLists.txt
==============================================================================
--- (empty file)
+++ sandbox-branches/boost-cmake/boost_1_34_0/libs/typeof/test/CMakeLists.txt 2007-06-04 23:41:04 EDT (Mon, 04 Jun 2007)
@@ -0,0 +1,21 @@
+file(GLOB TEST_FILES "*.cpp")
+foreach(TEST_FILE ${TEST_FILES})
+ if (TEST_FILE MATCHES "odr.*cpp")
+ # Skip ODR tests; we'll handle them separately
+ else (TEST_FILE MATCHES "odr.*cpp")
+ get_filename_component(TEST_NAME ${TEST_FILE} NAME_WE)
+ boost_test_compile("${TEST_NAME}_native"
+ SOURCES ${TEST_FILE} COMPILE_FLAGS "-DBOOST_TYPEOF_NATIVE")
+ boost_test_compile("${TEST_NAME}_emulation"
+ SOURCES ${TEST_FILE} COMPILE_FLAGS "-DBOOST_TYPEOF_EMULATION")
+ endif (TEST_FILE MATCHES "odr.*cpp")
+endforeach(TEST_FILE ${TEST_FILES})
+
+boost_test_run(odr_native
+ SOURCES odr1.cpp odr2.cpp COMPILE_FLAGS "-DBOOST_TYPEOF_NATIVE")
+boost_test_run(odr_emulation
+ SOURCES odr1.cpp odr2.cpp COMPILE_FLAGS "-DBOOST_TYPEOF_EMULATION")
+boost_test_run(odr_no_uns
+ SOURCES odr_no_uns1.cpp odr_no_uns2.cpp
+ COMPILE_FLAGS "-DBOOST_TYPEOF_EMULATION")
+
\ No newline at end of file


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