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 ### Check 32bits or 64bits
13 INCLUDE (CheckTypeSize)
14 CHECK_TYPE_SIZE("int" SIZEOF_INT)
16 IF(SIZEOF_INT EQUAL 4)
18 ELSE(SIZEOF_INT EQUAL 4)
20 ENDIF(SIZEOF_INT EQUAL 4)
22 INCLUDE(CTestConfig.txt)
30 INCLUDE(CTestList.txt)
32 # Install the CTest configuration in the build dir
33 configure_file(CTestCustom.ctest ${CMAKE_BINARY_DIR}/CTestCustom.ctest
36 #SET (CMAKE_COMPILER_IS_GNUCXX 1)
37 #SET (CMAKE_COMPILER_IS_GNUCC 1)