1 cmake_minimum_required(VERSION 2.6)
2 PROJECT(SimgridProject)
4 # --------------------- OPTIONS OF THE PROJECT -----------------------------
5 OPTION( BUILD_SHARED_LIBS "Build SimGrid with shared libraries." ON )
6 OPTION( SIMGRID_BUILD_EXAMPLES "Build SimGrid examples." ON )
7 OPTION( SIMGRID_BUILD_DOCUMENTATION "Build the users manual documentation." OFF )
8 OPTION( SIMGRID_WITH_PTHREAD "Use pthread as context support." OFF )
10 OPTION( SIMGRID_USE_GTNETS "Build SimGrid with GTNets support." OFF )
12 ### Display the version
13 find_program(CAT NAMES cat)
14 exec_program("${CAT}" ARGS "version" OUTPUT_VARIABLE VERSION)
15 message("svn version: " ${VERSION})
18 ### Check 32bits or 64bits
19 INCLUDE (CheckTypeSize)
20 CHECK_TYPE_SIZE("long" SIZEOF_LONG)
21 IF(SIZEOF_LONG EQUAL 4)
23 ELSE(SIZEOF_LONG EQUAL 4)
25 ENDIF(SIZEOF_LONG EQUAL 4)
29 INCLUDE(CTestConfig.cmake)
33 INCLUDE(CTestList.txt)
35 # Install the CTest configuration in the build dir
36 configure_file(CTestConfig.cmake ${CMAKE_BINARY_DIR}/CTestCustom.ctest COPYONLY)
38 #SET (CMAKE_COMPILER_IS_GNUCXX 1)
39 #SET (CMAKE_COMPILER_IS_GNUCC 1)