Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
9dfec631f224dd98db34e337fb99bdea0a8d17b0
[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("long" SIZEOF_LONG)
15 #message("SIZEOF_LONG : ${SIZEOF_LONG}")
16 IF(SIZEOF_LONG EQUAL 4)
17   SET(ARCH_32_BITS 1)
18         message("ARCH_32_BITS")
19 ELSE(SIZEOF_LONG EQUAL 4)
20   SET(ARCH_32_BITS 0)
21         message("ARCH_64_BITS")
22 ENDIF(SIZEOF_LONG EQUAL 4)
23
24
25 ### Enable tests
26 INCLUDE(CTestConfig.cmake)
27 ENABLE_TESTING()
28 INCLUDE(CTest)
29 INCLUDE(Dart)
30 INCLUDE(CTestList.txt)
31
32 # Install the CTest configuration in the build dir
33 configure_file(CTestConfig.cmake ${CMAKE_BINARY_DIR}/CTestCustom.ctest COPYONLY)
34
35 #SET (CMAKE_COMPILER_IS_GNUCXX 1)
36 #SET (CMAKE_COMPILER_IS_GNUCC 1)
37