cmake_minimum_required(VERSION 2.6)
# Java requires 2.8.6
+message(STATUS "Cmake version ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}")
project(SimGrid C CXX)
##
## 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.")
if(WIN32)
set(INCLUDES ${INCLUDES} ${CMAKE_HOME_DIRECTORY}/include/xbt ${CMAKE_HOME_DIRECTORY}/src/xbt) #for win32_ucontext.[ch]
endif()
-set(CMAKE_SOURCE_DIR ${PROJECT_SOURCE_DIRECTORY})
if(NOT CMAKE_CROSSCOMPILING AND EXISTS /usr/include/)
set(INCLUDES ${INCLUDES} /usr/include/)
### 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
endif()
if(enable_java)
- include(${CMAKE_HOME_DIRECTORY}/tools/cmake/MakeJava.cmake)
+ include(${CMAKE_HOME_DIRECTORY}/tools/cmake/Java.cmake)
endif()
### Make Exes
### 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()
find_program(WGET_PROGRAM NAMES wget)
message(STATUS "wget: ${WGET_PROGRAM}")