Changeset 2564 for trunk/test_more


Ignore:
Timestamp:
Nov 12, 2012 4:55:25 PM (7 years ago)
Author:
bradbell
Message:
  1. cmake: Define check_* targets that build & run tests for each directory.
  2. move run_cmake.sh to check_all.sh.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/CMakeLists.txt

    r2563 r2564  
    3333IF ( eigen_prefix )
    3434        # compile eigen library separately so can use different compiler flags
    35         ADD_LIBRARY(test_more_eigen cppad_eigen.cpp)
     35        ADD_LIBRARY(test_more_eigen EXCLUDE_FROM_ALL cppad_eigen.cpp)
    3636        # Adds -D define flags to the compilation of source files.
    3737        ADD_DEFINITIONS("-DCPPAD_EIGEN_TEST")
     
    5656#                 source1 source2 ... sourceN
    5757# )
    58 ADD_EXECUTABLE(test_more test_more.cpp
     58ADD_EXECUTABLE(test_more EXCLUDE_FROM_ALL test_more.cpp
    5959        ${adolc_sources}
    6060        ${eigen_sources}
     
    140140TARGET_LINK_LIBRARIES(test_more ${test_more_adolc} ${test_more_eigen})
    141141
    142 # add_test(testname Exename arg1 arg2 ... )
    143 # ADD_TEST( test_more test_more )
     142# Add the check_test_more target
     143ADD_CUSTOM_TARGET(
     144        check_test_more test_more DEPENDS test_more ${test_more_eigen}
     145)
Note: See TracChangeset for help on using the changeset viewer.