##
## Check the C/C++ standard that we need
-## See also tools/cmake/Flags.cmake that sets our paranoid warning flags
+## See also tools/cmake/GCCFlags.cmake that sets our paranoid warning flags
if (MSVC)
message("-- You are compiling SimGrid with MicroSoft Visual C. Good luck.")
### Setup gcc & clang flags
if (NOT MSVC)
- include(${CMAKE_HOME_DIRECTORY}/tools/cmake/Flags.cmake)
+ include(${CMAKE_HOME_DIRECTORY}/tools/cmake/GCCFlags.cmake)
endif()
### Make Libs
### Setup the distrib
include(${CMAKE_HOME_DIRECTORY}/tools/cmake/Distrib.cmake)
-### Pipol compilation
-include(${CMAKE_HOME_DIRECTORY}/tools/cmake/Pipol.cmake)
-
-### Build the doc
+### Build the doc (Windows downloads the doc instead of regenerating)
+#
if(NOT WIN32)
- include(${CMAKE_HOME_DIRECTORY}/tools/cmake/GenerateDoc.cmake)
+ include(${CMAKE_HOME_DIRECTORY}/tools/cmake/Documentation.cmake)
else()
- include(${CMAKE_HOME_DIRECTORY}/tools/cmake/GenerateDocWin.cmake)
+ find_program(WGET_PROGRAM NAMES wget)
+ message(STATUS "wget: ${WGET_PROGRAM}")
+ if(WGET_PROGRAM)
+ ADD_CUSTOM_TARGET(simgrid_documentation
+ COMMENT "Downloading the SimGrid documentation..."
+ COMMAND ${WGET_PROGRAM} -r -np -nH -nd http://simgrid.gforge.inria.fr/simgrid/${release_version}/doc/
+ WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc/html
+ )
+ endif()
endif()
### Print ARGS