mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
introduce check target, and some renaming
This commit is contained in:
parent
8b563d7163
commit
9b7708f660
@ -23,7 +23,7 @@ macro(ei_add_test_internal testname testname_with_suffix)
|
||||
|
||||
set(filename ${testname}.cpp)
|
||||
add_executable(${targetname} ${filename})
|
||||
add_dependencies(btest ${targetname})
|
||||
add_dependencies(buildtests ${targetname})
|
||||
|
||||
if(EIGEN_NO_ASSERTION_CHECKING)
|
||||
ei_add_target_property(${targetname} COMPILE_FLAGS "-DEIGEN_NO_ASSERTION_CHECKING=1")
|
||||
|
@ -1,3 +1,3 @@
|
||||
configure_file(mctestr.in ${CMAKE_BINARY_DIR}/mctestr)
|
||||
configure_file(check.in ${CMAKE_BINARY_DIR}/check)
|
||||
configure_file(debug.in ${CMAKE_BINARY_DIR}/debug)
|
||||
configure_file(release.in ${CMAKE_BINARY_DIR}/release)
|
||||
|
@ -1,5 +1,9 @@
|
||||
project(EigenTesting)
|
||||
add_custom_target(btest)
|
||||
add_custom_target(buildtests)
|
||||
add_custom_target(check COMMAND "ctest")
|
||||
add_dependencies(check buildtests)
|
||||
|
||||
|
||||
include(EigenTesting)
|
||||
ei_init_testing()
|
||||
|
||||
@ -163,4 +167,4 @@ endif(CMAKE_COMPILER_IS_GNUCXX)
|
||||
ei_add_property(EIGEN_TESTING_SUMMARY "CXX_FLAGS: ${CMAKE_CXX_FLAGS}\n")
|
||||
ei_add_property(EIGEN_TESTING_SUMMARY "Sparse lib flags: ${SPARSE_LIBS}\n")
|
||||
|
||||
configure_file(maketests.in ${CMAKE_BINARY_DIR}/maketests)
|
||||
configure_file(buildtests.in ${CMAKE_BINARY_DIR}/buildtests)
|
||||
|
@ -23,6 +23,9 @@
|
||||
// License and a copy of the GNU General Public License along with
|
||||
// Eigen. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// work around "uninitialized" warnings and give that option some testing
|
||||
#define EIGEN_INITIALIZE_MATRICES_BY_ZERO
|
||||
|
||||
#ifndef EIGEN_NO_STATIC_ASSERT
|
||||
#define EIGEN_NO_STATIC_ASSERT // turn static asserts into runtime asserts in order to check them
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user