Changeset 2521 for trunk/test_more


Ignore:
Timestamp:
Oct 29, 2012 12:15:59 PM (7 years ago)
Author:
bradbell
Message:

cmake: include eigen tests that are in test_more directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/CMakeLists.txt

    r2519 r2521  
    1717SET(CMAKE_BUILD_TYPE DEBUG)
    1818
     19# sources that use adolc
    1920IF ( adolc_prefix )
    2021        # Extra source files if we are including adolc
     
    2627ENDIF ( adolc_prefix )
    2728
     29# sources that use eigen
     30IF ( eigen_prefix )
     31        # Extra source files if we are including eigen
     32        SET(eigen_sources cppad_eigen.cpp)
     33        # Adds -D define flags to the compilation of source files.
     34        ADD_DEFINITIONS("-DCPPAD_EIGEN_TEST")
     35ELSE ( eigen_prefix )
     36        SET(eigen_sources "")
     37ENDIF ( eigen_prefix )
     38
    2839# add_executable(<name> [WIN32] [MACOSX_BUNDLE] [EXCLUDE_FROM_ALL]
    2940#                 source1 source2 ... sourceN
     
    3142ADD_EXECUTABLE(test_more test_more.cpp
    3243        ${adolc_sources}
     44        ${eigen_sources}
    3345        abs.cpp
    3446        acos.cpp
     
    105117        vec_unary.cpp
    106118)
     119
     120# adolc_prefix
    107121IF ( adolc_prefix )
    108122        # List of libraries to be linked into the specified target
Note: See TracChangeset for help on using the changeset viewer.