# HG changeset patch # User Alpar Juttner # Date 2008-07-18 17:36:58 # Node ID c5a40fc54f1a912fd8aead0658df7e7655edbc3c # Parent b246072978e812957ee88e2b982cf07a9c106e81 CMake improvements. - documentation generation with Doxygen - installation support diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,101 @@ -project (LEMON) -enable_testing () -add_subdirectory (lemon) -add_subdirectory (demo) -add_subdirectory (test) +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) + +#EXECUTE_PROCESS( +# COMMAND hg id -i +# OUTPUT_VARIABLE HG_REVISION +# OUTPUT_STRIP_TRAILING_WHITESPACE) + +SET(PROJECT_NAME "Lemon") +SET(PROJECT_VERSION_MAJOR "0") +SET(PROJECT_VERSION_MINOR "99") +SET(PROJECT_VERSION_PATCH "0") +SET(PROJECT_VERSION + "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}") + +PROJECT(${PROJECT_NAME}) + +SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) + +INCLUDE(FindDoxygen) +INCLUDE(FindGhostscript) + +ENABLE_TESTING() + +ADD_SUBDIRECTORY(lemon) +ADD_SUBDIRECTORY(demo) +ADD_SUBDIRECTORY(doc) +ADD_SUBDIRECTORY(test) + +IF(WIN32) + INSTALL(FILES ${CMAKE_SOURCE_DIR}/cmake/nsis/lemon.ico + DESTINATION bin) +ENDIF(WIN32) + +IF(WIN32) + SET(CPACK_PACKAGE_NAME ${PROJECT_NAME}) + SET(CPACK_PACKAGE_VENDOR + "EGRES - Egervary Research Group on Combinatorial Optimization") + SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY + "Lemon - Library of Efficient Models and Optimization in Networks") + SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE") + + SET(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR}) + SET(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR}) + SET(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH}) + SET(CPACK_PACKAGE_VERSION ${PROJECT_VERSION}) + + SET(CPACK_PACKAGE_INSTALL_DIRECTORY + "${PROJECT_NAME} ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}") + SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY + "${PROJECT_NAME} ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}") + + # Variables to generate a component-based installer. + #SET(CPACK_COMPONENTS_ALL headers library html_documentation) + + #SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ headers") + #SET(CPACK_COMPONENT_LIBRARY_DISPLAY_NAME "Static library") + #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DISPLAY_NAME "HTML documentation") + + #SET(CPACK_COMPONENT_HEADERS_DESCRIPTION + # "C++ header files for use with the Lemon library") + #SET(CPACK_COMPONENT_LIBRARY_DESCRIPTION + # "Static library used to build programs with Lemon") + #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DESCRIPTION + # "Doxygen generated documentation") + + #SET(CPACK_COMPONENT_HEADERS_DEPENDS library) + + #SET(CPACK_COMPONENT_HEADERS_GROUP "Development") + #SET(CPACK_COMPONENT_LIBRARY_GROUP "Development") + #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_GROUP "Documentation") + + #SET(CPACK_COMPONENT_GROUP_DEVELOPMENT_DESCRIPTION + # "Components needed to develop software using Lemon") + #SET(CPACK_COMPONENT_GROUP_DOCUMENTATION_DESCRIPTION + # "Documentation of Lemon") + + #SET(CPACK_ALL_INSTALL_TYPES Full Developer) + + #SET(CPACK_COMPONENT_HEADERS_INSTALL_TYPES Developer Full) + #SET(CPACK_COMPONENT_LIBRARY_INSTALL_TYPES Developer Full) + #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_INSTALL_TYPES Full) + + SET(CPACK_GENERATOR "NSIS") + SET(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/cmake/nsis/lemon.ico") + SET(CPACK_NSIS_MUI_UNIICON "${CMAKE_SOURCE_DIR}/cmake/nsis/uninstall.ico") + #SET(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/cmake/nsis\\\\installer.bmp") + SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\lemon.ico") + SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} ${PROJECT_NAME}") + SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\lemon.cs.elte.hu") + SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\lemon.cs.elte.hu") + SET(CPACK_NSIS_CONTACT "lemon-user@lemon.cs.elte.hu") + SET(CPACK_NSIS_CREATE_ICONS_EXTRA " + CreateShortCut \\\"$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\Documentation.lnk\\\" \\\"$INSTDIR\\\\doc\\\\index.html\\\" + ") + SET(CPACK_NSIS_DELETE_ICONS_EXTRA " + !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP + Delete \\\"$SMPROGRAMS\\\\$MUI_TEMP\\\\Documentation.lnk\\\" + ") + + INCLUDE(CPack) +ENDIF(WIN32) diff --git a/cmake/FindGhostscript.cmake b/cmake/FindGhostscript.cmake new file mode 100644 --- /dev/null +++ b/cmake/FindGhostscript.cmake @@ -0,0 +1,10 @@ +INCLUDE(FindPackageHandleStandardArgs) + +FIND_PROGRAM(GHOSTSCRIPT_EXECUTABLE + NAMES gs gswin32c + PATHS "$ENV{ProgramFiles}/gs" + PATH_SUFFIXES gs8.61/bin gs8.62/bin + DOC "Ghostscript: PostScript and PDF language interpreter and previewer." +) + +FIND_PACKAGE_HANDLE_STANDARD_ARGS(Ghostscript DEFAULT_MSG GHOSTSCRIPT_EXECUTABLE) diff --git a/cmake/nsis/lemon.ico b/cmake/nsis/lem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8#$hl^y_$zVfNECtm&6EjjHaVraMRdd?8WSYyvN$wx8{%)e7=Hk+Tx$`!pCL zENDpFi!*Kgh#R}iVt$sp<#%k?u60*#*}dR&KFB=o3Zw_2TRxJ2eU(+|QyQXXA z4fOjVY6O9s;B=VI5nrR|_X+grVxg(8=<5!1$w$M zBaGK`dYxrp&1=P+HH@`~6S=-|ZV8NcEd`DV1^@UX_KWL{K`ymxO+FRpu=y_JqlqxZ z7T{fKj$Rx?%alBrc8K*7`t#&nm~Usn`WEX8F&`t(={3y)Ppzg=b_i`3teqo~kI}!E z#kzSG^Dwa@)>(vhbqUwBf^sd5c8dQK!8)D#U6G#s5Jm#b@OBspR{H^t&Ockhm}2BmKpF z)jUwy7EK}8s0C%5XSN%YKr-ljO&6@yp@sG&tPNMGH%*cD8OC@%~TNg=$zfOmPL`9In-W zWBV^I;};&$>umN!{vghTG^EX484D}e-wMt}x70l9{2+ZjLd?NZ>d!r_6@17i7m1y# zN#qaaqwG>VUs!>re7-N+=#mO7qaVb&nv+TUV`dTSn}^u&P}B$y(K;;;Hpj#oXc(-{lV@&{OZx=bd0Q`-92gZ2RS9Mx}E|<;JpW? z@XW1_cP)SFEYV-R_NC?5=o*}{#Qs7|g&{ZvwX+If&(@V=m_&YBMjwl_Mhl7Q&uO2o8PR&Ja zVyH%R3Tmb0qDj_$a$pf&PRYef%oz<5b6Ib*p7Mw@8~Lr(1gb}{;^f&fP`urub6!6OED4ZnJ71_ko0c${z-qU&H8~M z-o-&BaWA956Zb&zNB(o>eX;hVB(;;IpTxbPBs~)M8j@5d?&hEG8RAZb82I!q9+%|* zegFS@{knhk=X;>In}5D%hnGuJ&F^M$|9@VQWoiHb diff --git a/cmake/nsis/uninstall.ico b/cmake/nsis/uninstall.ico new file mode 100644 index 0000000000000000000000000000000000000000..7495f7c3c270c2a2ff3bd0fb9d42c1aea67c3c41 GIT binary patch literal 15086 zc%0392Xs|sy7ut`3B`hq8QY-a)unUC8OIsRI2LMpFDECxHz1HkfY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eSNXeZ4uhr zTO}QIvKo&WyS z6cgRs+rvV+k4ad)W))U3---8QL@pHdh=|dZ6=m=b^v6cl>+9C9qi-cjdnDc^5&T1U zhT@A&Ur4b`d?tjoSV>8-6kkNX7VlyR9pvU@@H2i02@63uIYz_?Fek9q2@MZL81wOw zqX(fGxau}@Zti&8hpuS~z1Y|7EpBhgNcZgNx6a8UC~`Xk-6Dau@uq+!x>B zUR)l;6@h6(Q0QG9#Lt7cCZOT!bmsv5M!b)-hdppJeK?DIAGA3L^BnE&PB+!RNxcu@ z)*xCdw-aWhf_wMPw zo1B#J%f^ix`rO^!gZZ6W#DnJ0|0fsMddk;#MZJg>jB(@kaYL84xA)4Dk|M-JM_nf8 zb^MMO{;zpH%o0FaEPu zdS6MJ4xbWt<-z*|>AfZCern`h`Pa`&_nE)l{nSVvzu~=MkhkBU9FKH=Z1B0!cjYnG h86n3_asON@]), @@ -47,7 +48,7 @@ fi AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"]) -dnl Disable/enable building the binary tools +dnl Disable/enable building the binary tools. AC_ARG_ENABLE([tools], AS_HELP_STRING([--enable-tools], [build additional tools @<:@default@:>@]) AS_HELP_STRING([--disable-tools], [do not build additional tools]), @@ -60,7 +61,7 @@ fi AM_CONDITIONAL([WANT_TOOLS], [test x"$enable_tools" != x"no"]) -dnl Disable/enable building the benchmarks +dnl Disable/enable building the benchmarks. AC_ARG_ENABLE([benchmark], AS_HELP_STRING([--enable-benchmark], [build the benchmarks]) AS_HELP_STRING([--disable-benchmark], [do not build the benchmarks @<:@default@:>@]), diff --git a/demo/CMakeLists.txt b/demo/CMakeLists.txt --- a/demo/CMakeLists.txt +++ b/demo/CMakeLists.txt @@ -1,13 +1,13 @@ -include_directories (${LEMON_SOURCE_DIR}) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) -link_directories (${LEMON_BINARY_DIR}/lemon) +LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon) -set (DEMOS +SET(DEMOS arg_parser_demo graph_to_eps_demo lgf_demo) -foreach (DEMO_NAME ${DEMOS}) - add_executable (${DEMO_NAME} ${DEMO_NAME}.cc) - target_link_libraries (${DEMO_NAME} lemon) - endforeach (DEMO_NAME) +FOREACH(DEMO_NAME ${DEMOS}) + ADD_EXECUTABLE(${DEMO_NAME} ${DEMO_NAME}.cc) + TARGET_LINK_LIBRARIES(${DEMO_NAME} lemon) +ENDFOREACH(DEMO_NAME) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt new file mode 100644 --- /dev/null +++ b/doc/CMakeLists.txt @@ -0,0 +1,42 @@ +SET(PACKAGE_NAME ${PROJECT_NAME}) +SET(PACKAGE_VERSION ${PROJECT_VERSION}) +SET(abs_top_srcdir ${CMAKE_SOURCE_DIR}) +SET(abs_top_builddir ${CMAKE_BINARY_DIR}) + +CONFIGURE_FILE( + ${CMAKE_SOURCE_DIR}/doc/Doxyfile.in + ${CMAKE_BINARY_DIR}/doc/Doxyfile + @ONLY) + +IF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE) + IF(UNIX) + ADD_CUSTOM_TARGET(html + COMMAND rm -rf gen-images + COMMAND mkdir gen-images + COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/nodeshape_0.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_0.eps + COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/nodeshape_1.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_1.eps + COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/nodeshape_2.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_2.eps + COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/nodeshape_3.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_3.eps + COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/nodeshape_4.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_4.eps + COMMAND rm -rf html + COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) + ELSEIF(WIN32) + ADD_CUSTOM_TARGET(html + COMMAND if exist gen-images rmdir /s /q gen-images + COMMAND mkdir gen-images + COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/nodeshape_0.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_0.eps + COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/nodeshape_1.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_1.eps + COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/nodeshape_2.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_2.eps + COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/nodeshape_3.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_3.eps + COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/nodeshape_4.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_4.eps + COMMAND if exist html rmdir /s /q html + COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) + ENDIF(UNIX) +ENDIF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE) + +INSTALL( + DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ + DESTINATION doc + COMPONENT html_documentation) diff --git a/lemon/CMakeLists.txt b/lemon/CMakeLists.txt --- a/lemon/CMakeLists.txt +++ b/lemon/CMakeLists.txt @@ -1,2 +1,18 @@ -include_directories (${LEMON_SOURCE_DIR}) -add_library (lemon arg_parser.cc base.cc color.cc random.cc) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) + +ADD_LIBRARY(lemon + arg_parser.cc + base.cc + color.cc + random.cc) + +INSTALL( + TARGETS lemon + ARCHIVE DESTINATION lib + COMPONENT library) + +INSTALL( + DIRECTORY . bits concepts + DESTINATION include/lemon + COMPONENT headers + FILES_MATCHING PATTERN "*.h") diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,8 +1,8 @@ -include_directories (${LEMON_SOURCE_DIR}) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) -link_directories (${LEMON_BINARY_DIR}/lemon) +LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon) -set (TESTS +SET(TESTS bfs_test counter_test dfs_test @@ -16,13 +16,13 @@ heap_test kruskal_test maps_test + random_test path_test - random_test time_measure_test unionfind_test) -foreach (TEST_NAME ${TESTS}) - add_executable (${TEST_NAME} ${TEST_NAME}.cc) - target_link_libraries (${TEST_NAME} lemon) - add_test(${TEST_NAME} ${TEST_NAME}) -endforeach (TEST_NAME) +FOREACH(TEST_NAME ${TESTS}) + ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc) + TARGET_LINK_LIBRARIES(${TEST_NAME} lemon) + ADD_TEST(${TEST_NAME} ${TEST_NAME}) +ENDFOREACH(TEST_NAME)