merge of cmake build files from trunk per beman

[SVN r50756]
This commit is contained in:
Troy D. Straszheim
2009-01-24 18:57:20 +00:00
parent cde21a588d
commit 33ae5341c1
3 changed files with 46 additions and 0 deletions

21
CMakeLists.txt Normal file
View File

@ -0,0 +1,21 @@
#----------------------------------------------------------------------------
# This file was automatically generated from the original CMakeLists.txt file
# Add a variable to hold the headers for the library
set (lib_headers
typeof
)
# Add a library target to the build system
boost_library_project(
typeof
# SRCDIRS
TESTDIRS test
HEADERS ${lib_headers}
# DOCDIRS
# DESCRIPTION
MODULARIZED
# AUTHORS
# MAINTAINERS
)

1
module.cmake Normal file
View File

@ -0,0 +1 @@
boost_module(typeof DEPENDS mpl config detail preprocessor)

24
test/CMakeLists.txt Normal file
View File

@ -0,0 +1,24 @@
boost_additional_test_dependencies(typeof BOOST_DEPENDS test)
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"
"${TEST_NAME}.cpp" COMPILE_FLAGS "-DBOOST_TYPEOF_NATIVE")
boost_test_compile("${TEST_NAME}_emulation"
"${TEST_NAME}.cpp" COMPILE_FLAGS "-DBOOST_TYPEOF_EMULATION")
endif (TEST_FILE MATCHES "odr.*cpp")
endforeach(TEST_FILE ${TEST_FILES})
boost_test_run(odr_native
odr1.cpp odr2.cpp COMPILE_FLAGS "-DBOOST_TYPEOF_NATIVE")
boost_test_run(odr_emulation
odr1.cpp odr2.cpp COMPILE_FLAGS "-DBOOST_TYPEOF_EMULATION")
boost_test_run(odr_no_uns
odr_no_uns1.cpp odr_no_uns2.cpp
COMPILE_FLAGS "-DBOOST_TYPEOF_EMULATION")