Changeset 2563 for trunk/test_more


Ignore:
Timestamp:
Nov 12, 2012 10:32:31 AM (7 years ago)
Author:
bradbell
Message:
  1. Fix problem when no cppad_cxx_flags specified on cmake command line.
  2. Include cppad_cxx_flags in cppad_ipopt and print_for compliations.
  3. Make targets reflect directory structure; e.g. eigen_example->example_eigen.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/CMakeLists.txt

    r2561 r2563  
    2424        ADD_DEFINITIONS("-DCPPAD_ADOLC_TEST")
    2525        # add adolc to list of libraries
    26         SET(adolc_test_more adolc)
     26        SET(test_more_adolc adolc)
    2727ELSE ( adolc_prefix )
    2828        SET(adolc_sources "")
    29         SET(adolc_test_more "")
     29        SET(test_more_adolc "")
    3030ENDIF ( adolc_prefix )
    3131
     
    3636        # Adds -D define flags to the compilation of source files.
    3737        ADD_DEFINITIONS("-DCPPAD_EIGEN_TEST")
    38         SET_TARGET_PROPERTIES(test_more_eigen PROPERTIES COMPILE_FLAGS
    39                 "${cppad_cxx_flags_skip_Wshadow}"
    40         )
     38        # Add other compiler flags
     39        add_cppad_cxx_flags(test_more_eigen)
    4140        #
    4241        # Add eigen to list of libraries
     
    136135
    137136# Compiler flags for cppad source
    138 SET_TARGET_PROPERTIES(test_more PROPERTIES COMPILE_FLAGS "${cppad_cxx_flags}")
     137add_cppad_cxx_flags(test_more)
    139138
    140139# List of libraries to be linked into the specified target
    141 TARGET_LINK_LIBRARIES(test_more ${adolc_test_more} ${test_more_eigen})
     140TARGET_LINK_LIBRARIES(test_more ${test_more_adolc} ${test_more_eigen})
    142141
    143142# add_test(testname Exename arg1 arg2 ... )
Note: See TracChangeset for help on using the changeset viewer.