Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
46ef1c6136268e434634265ff7c0b4dca258faaa
[simgrid.git] / buildtools / Cmake / GenerateDocWin.cmake
1 #### Generate the html documentation
2 find_path(WGET_PATH     NAMES wget.exe  PATHS NO_DEFAULT_PATHS)
3 find_path(NSIS_PATH NAMES makensis.exe  PATHS NO_DEFAULT_PATHS)
4
5 message(STATUS "wget: ${WGET_PATH}")
6 message(STATUS "nsis: ${NSIS_PATH}")
7
8 if(WGET_PATH)
9         ADD_CUSTOM_TARGET(simgrid_documentation
10                 COMMENT "Downloading the SimGrid documentation..."
11                 COMMAND ${WGET_PATH}/wget.exe -r -np -nH -nd http://simgrid.gforge.inria.fr/simgrid/${release_version}/doc/
12                 WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc/html
13         )
14 endif(WGET_PATH)
15
16 if(NSIS_PATH)
17 ADD_CUSTOM_TARGET(nsis
18         COMMENT "Generating the SimGrid installor for Windows..."
19         DEPENDS simgrid gras graphicator gras_stub_generator tesh simgrid-colorizer simgrid_update_xml
20         COMMAND ${NSIS_PATH}/makensis.exe simgrid.nsi
21         WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/
22 )
23 endif(NSIS_PATH)