mirror of
https://github.com/boostorg/typeof.git
synced 2026-04-12 21:05:47 +02:00
Compare commits
4 Commits
boost-1.37
...
svn-branch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e9ae5f9e6b | ||
|
|
916c6eeb63 | ||
|
|
7d3afd076d | ||
|
|
6926249653 |
21
CMakeLists.txt
Normal file
21
CMakeLists.txt
Normal 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
|
||||
)
|
||||
|
||||
|
||||
21
test/CMakeLists.txt
Normal file
21
test/CMakeLists.txt
Normal file
@@ -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"
|
||||
"${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")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# // (C) Copyright Tobias Schwinger
|
||||
# //
|
||||
# // Use modification and distribution are subject to the boost Software License
|
||||
# // Version 1.0. (See http:/\/www.boost.org/LICENSE_1_0.txt).
|
||||
# // Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
|
||||
|
||||
# // Preprocess and run this script.
|
||||
# //
|
||||
|
||||
Reference in New Issue
Block a user