Changes in / [987:cfbabca1b4e9:986:c8896bc31271] in lemon-main
- Files:
-
- 17 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r983 r980 13 13 ELSE() 14 14 EXECUTE_PROCESS( 15 COMMAND 16 hg log -r. --template "{latesttag}" 15 COMMAND ${PYTHON_EXECUTABLE} ./scripts/chg-len.py 17 16 WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} 18 OUTPUT_VARIABLE HG_REVISION_ TAG17 OUTPUT_VARIABLE HG_REVISION_PATH 19 18 ERROR_QUIET 20 19 OUTPUT_STRIP_TRAILING_WHITESPACE 21 20 ) 22 21 EXECUTE_PROCESS( 23 COMMAND 24 hg log -r. --template "{latesttagdistance}" 22 COMMAND hg id -i 25 23 WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} 26 OUTPUT_VARIABLE HG_REVISION _DIST24 OUTPUT_VARIABLE HG_REVISION 27 25 ERROR_QUIET 28 26 OUTPUT_STRIP_TRAILING_WHITESPACE 29 27 ) 30 EXECUTE_PROCESS( 31 COMMAND 32 hg log -r. --template "{node|short}" 33 WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} 34 OUTPUT_VARIABLE HG_REVISION_ID 35 ERROR_QUIET 36 OUTPUT_STRIP_TRAILING_WHITESPACE 37 ) 38 39 IF(HG_REVISION_TAG STREQUAL "") 28 IF(HG_REVISION STREQUAL "") 40 29 SET(HG_REVISION_ID "hg-tip") 41 30 ELSE() 42 IF(HG_REVISION_TAG STREQUAL "null") 43 SET(HG_REVISION_TAG "trunk") 44 ELSEIF(HG_REVISION_TAG MATCHES "^r") 45 STRING(SUBSTRING ${HG_REVISION_TAG} 1 -1 HG_REVISION_TAG) 46 ENDIF() 47 IF(HG_REVISION_DIST STREQUAL "0") 48 SET(HG_REVISION ${HG_REVISION_TAG}) 31 IF(HG_REVISION_PATH STREQUAL "") 32 SET(HG_REVISION_ID ${HG_REVISION}) 49 33 ELSE() 50 SET(HG_REVISION 51 "${HG_REVISION_TAG}+${HG_REVISION_DIST}-${HG_REVISION_ID}") 34 SET(HG_REVISION_ID ${HG_REVISION_PATH}.${HG_REVISION}) 52 35 ENDIF() 53 36 ENDIF() 54 55 SET(LEMON_VERSION ${HG_REVISION} CACHE STRING "LEMON version string.") 37 SET(LEMON_VERSION ${HG_REVISION_ID} CACHE STRING "LEMON version string.") 56 38 ENDIF() 57 39 … … 189 171 ENDIF() 190 172 191 CONFIGURE_FILE(192 ${PROJECT_SOURCE_DIR}/cmake/version.cmake.in193 ${PROJECT_BINARY_DIR}/cmake/version.cmake194 @ONLY195 )196 197 SET(ARCHIVE_BASE_NAME ${CMAKE_PROJECT_NAME})198 STRING(TOLOWER ${ARCHIVE_BASE_NAME} ARCHIVE_BASE_NAME)199 SET(ARCHIVE_NAME ${ARCHIVE_BASE_NAME}-${PROJECT_VERSION})200 ADD_CUSTOM_TARGET(dist201 COMMAND cmake -E remove_directory ${ARCHIVE_NAME}202 COMMAND hg archive ${ARCHIVE_NAME}203 COMMAND cmake -E copy cmake/version.cmake ${ARCHIVE_NAME}/cmake/version.cmake204 COMMAND tar -czf ${ARCHIVE_BASE_NAME}-nodoc-${PROJECT_VERSION}.tar.gz ${ARCHIVE_NAME}205 COMMAND zip -r ${ARCHIVE_BASE_NAME}-nodoc-${PROJECT_VERSION}.zip ${ARCHIVE_NAME}206 COMMAND cmake -E copy_directory doc/html ${ARCHIVE_NAME}/doc/html207 COMMAND tar -czf ${ARCHIVE_NAME}.tar.gz ${ARCHIVE_NAME}208 COMMAND zip -r ${ARCHIVE_NAME}.zip ${ARCHIVE_NAME}209 COMMAND cmake -E copy_directory doc/html ${ARCHIVE_BASE_NAME}-doc-${PROJECT_VERSION}210 COMMAND tar -czf ${ARCHIVE_BASE_NAME}-doc-${PROJECT_VERSION}.tar.gz ${ARCHIVE_BASE_NAME}-doc-${PROJECT_VERSION}211 COMMAND zip -r ${ARCHIVE_BASE_NAME}-doc-${PROJECT_VERSION}.zip ${ARCHIVE_BASE_NAME}-doc-${PROJECT_VERSION}212 COMMAND cmake -E remove_directory ${ARCHIVE_NAME}213 COMMAND cmake -E remove_directory ${ARCHIVE_BASE_NAME}-doc-${PROJECT_VERSION}214 DEPENDS html215 WORKING_DIRECTORY ${PROJECT_BINARY_DIR})216 217 # CPACK config (Basically for NSIS)218 173 IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR}) 219 174 SET(CPACK_PACKAGE_NAME ${PROJECT_NAME}) -
cmake/version.cmake.in
r983 r678 1 SET(LEMON_VERSION "@ LEMON_VERSION@" CACHE STRING "LEMON version string.")1 SET(LEMON_VERSION "@PACKAGE_VERSION@" CACHE STRING "LEMON version string.") -
doc/CMakeLists.txt
r983 r966 17 17 @ONLY 18 18 ) 19 20 # Copy doc from source (if exists)21 IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/html AND22 NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/html/index.html)23 MESSAGE(STATUS "Copy doc from source tree")24 EXECUTE_PROCESS(25 COMMAND cmake -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/html ${CMAKE_CURRENT_BINARY_DIR}/html26 )27 ENDIF()28 19 29 20 IF(DOXYGEN_EXECUTABLE AND PYTHONINTERP_FOUND AND GHOSTSCRIPT_EXECUTABLE) -
lemon/CMakeLists.txt
r981 r968 5 5 6 6 CONFIGURE_FILE( 7 ${CMAKE_CURRENT_SOURCE_DIR}/config.h. in7 ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake 8 8 ${CMAKE_CURRENT_BINARY_DIR}/config.h 9 9 ) 10 10 11 11 CONFIGURE_FILE( 12 ${CMAKE_CURRENT_SOURCE_DIR}/lemon.pc. in12 ${CMAKE_CURRENT_SOURCE_DIR}/lemon.pc.cmake 13 13 ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc 14 14 @ONLY -
lemon/config.h.in
r981 r979 1 #define LEMON_VERSION "@PROJECT_VERSION@" 2 #cmakedefine LEMON_HAVE_LONG_LONG 1 3 #cmakedefine LEMON_HAVE_LP 1 4 #cmakedefine LEMON_HAVE_MIP 1 5 #cmakedefine LEMON_HAVE_GLPK 1 6 #cmakedefine LEMON_HAVE_CPLEX 1 7 #cmakedefine LEMON_HAVE_CLP 1 8 #cmakedefine LEMON_HAVE_CBC 1 9 #cmakedefine LEMON_USE_PTHREAD 1 10 #cmakedefine LEMON_USE_WIN32_THREADS 1 1 /* The version string */ 2 #undef LEMON_VERSION 3 4 /* Define to 1 if you have long long */ 5 #undef LEMON_HAVE_LONG_LONG 6 7 /* Define to 1 if you have any LP solver. */ 8 #undef LEMON_HAVE_LP 9 10 /* Define to 1 if you have any MIP solver. */ 11 #undef LEMON_HAVE_MIP 12 13 /* Define to 1 if you have CPLEX. */ 14 #undef LEMON_HAVE_CPLEX 15 16 /* Define to 1 if you have GLPK. */ 17 #undef LEMON_HAVE_GLPK 18 19 /* Define to 1 if you have SOPLEX */ 20 #undef LEMON_HAVE_SOPLEX 21 22 /* Define to 1 if you have CLP */ 23 #undef LEMON_HAVE_CLP 24 25 /* Define to 1 if you have CBC */ 26 #undef LEMON_HAVE_CBC 27 28 /* Define to 1 if you have pthread */ 29 #undef LEMON_USE_PTHREAD 30 31 /* Define to 1 if you have win32 threads */ 32 #undef LEMON_USE_WIN32_THREADS -
lemon/lemon.pc.in
r981 r658 1 prefix=@ CMAKE_INSTALL_PREFIX@2 exec_prefix=@ CMAKE_INSTALL_PREFIX@/bin3 libdir=@ CMAKE_INSTALL_PREFIX@/lib4 includedir=@ CMAKE_INSTALL_PREFIX@/include1 prefix=@prefix@ 2 exec_prefix=@exec_prefix@ 3 libdir=@libdir@ 4 includedir=@includedir@ 5 5 6 Name: @P ROJECT_NAME@6 Name: @PACKAGE_NAME@ 7 7 Description: Library for Efficient Modeling and Optimization in Networks 8 Version: @P ROJECT_VERSION@8 Version: @PACKAGE_VERSION@ 9 9 Libs: -L${libdir} -lemon @GLPK_LIBS@ @CPLEX_LIBS@ @SOPLEX_LIBS@ @CLP_LIBS@ @CBC_LIBS@ 10 10 Cflags: -I${includedir}
Note: See TracChangeset
for help on using the changeset viewer.