COIN-OR::LEMON - Graph Library

Changeset 927:16d466589b54 in lemon-main for test


Ignore:
Timestamp:
08/25/10 21:34:58 (14 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Children:
928:021e232acda2, 940:64260c0f58eb
Phase:
public
Message:

Backport the CMAKE related changesets from the main branch

[e20fecd1945f] Add check target for CMake (#388)
[e74b5db4f2c6] Put the output of chg-len.py in the version string (#389)
[7d166b8b8018] Safer call of ./scripts/chg-len.py on Windows (#389)
[659ba4805a48] Make CMAKE config more consistent with configure.ac (#390)
[63e4468c680e] Add 'Maintainer' CMAKE build type (#388, #390)
[a725503acfe9] Allow CPACK configuration on all platforms
[10242c611190] Create and install lemon.pc (#393)
[48e29534cf03] The deafult target doesn't build lp_test and mip_test (#388)
[0fbbdd578c06] Full path for DoxygenLayout?.xml in Doxyfile.in (#395)
[481496e6d71f] SOURCE_BROWSER Doxygen switch is configurable from CMAKE (#395)
[09282720100b] update-external-tags CMAKE target (#395)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/CMakeLists.txt

    r679 r927  
    4242
    4343IF(LEMON_HAVE_LP)
    44   ADD_EXECUTABLE(lp_test lp_test.cc)
     44  IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
     45    ADD_EXECUTABLE(lp_test lp_test.cc)
     46  ELSE()
     47    ADD_EXECUTABLE(lp_test EXCLUDE_FROM_ALL lp_test.cc)
     48  ENDIF()
     49
    4550  SET(LP_TEST_LIBS lemon)
    4651
     
    7883
    7984IF(LEMON_HAVE_MIP)
    80   ADD_EXECUTABLE(mip_test mip_test.cc)
     85  IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
     86    ADD_EXECUTABLE(mip_test mip_test.cc)
     87  ELSE()
     88    ADD_EXECUTABLE(mip_test EXCLUDE_FROM_ALL mip_test.cc)
     89  ENDIF()
     90
    8191  SET(MIP_TEST_LIBS lemon)
    8292
     
    114124
    115125FOREACH(TEST_NAME ${TESTS})
    116   ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
     126  IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
     127    ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
     128  ELSE()
     129    ADD_EXECUTABLE(${TEST_NAME} EXCLUDE_FROM_ALL ${TEST_NAME}.cc)
     130  ENDIF()
    117131  TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
    118132  ADD_TEST(${TEST_NAME} ${TEST_NAME})
     133  ADD_DEPENDENCIES(check ${TEST_NAME})
    119134ENDFOREACH()
Note: See TracChangeset for help on using the changeset viewer.