Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
aeda560b7ceef00ce5230cace471199f8f56b84b
[simgrid.git] / buildtools / Cmake / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2 PROJECT(SimgridProject)
3
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 )
9
10 OPTION( SIMGRID_USE_GTNETS "Build SimGrid with GTNets support." OFF )
11
12 ### Check 32bits or 64bits
13 INCLUDE (CheckTypeSize)
14 CHECK_TYPE_SIZE("int" SIZEOF_INT)
15 IF(SIZEOF_INT EQUAL 4)
16   SET(ARCH_32_BITS 1)
17         message("ARCH_32_BITS")
18 ELSE(SIZEOF_INT EQUAL 4)
19   SET(ARCH_32_BITS 0)
20         message("ARCH_64_BITS")
21 ENDIF(SIZEOF_INT EQUAL 4)
22
23
24 ### Enable tests
25 INCLUDE(CTestConfig.cmake)
26 ENABLE_TESTING()
27 INCLUDE(CTest)
28 INCLUDE(Dart)
29 INCLUDE(CTestList.txt)
30
31 # Install the CTest configuration in the build dir
32 configure_file(CTestConfig.cmake ${CMAKE_BINARY_DIR}/CTestCustom.ctest COPYONLY)
33
34 #SET (CMAKE_COMPILER_IS_GNUCXX 1)
35 #SET (CMAKE_COMPILER_IS_GNUCC 1)
36