Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
05d3e5537c4ffbb7500abe9ceb7ed27344ed06f0
[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
16 IF(SIZEOF_INT EQUAL 4)
17   SET(ARCH_32_BITS 1)
18 ELSE(SIZEOF_INT EQUAL 4)
19   SET(ARCH_64_BITS 1)
20 ENDIF(SIZEOF_INT EQUAL 4)
21
22
23 ### Enable tests
24 ENABLE_TESTING()
25 INCLUDE(CTest)
26 INCLUDE(Dart)
27
28 # Configure Ctest
29 SET (UPDATE_TYPE "svn")
30 SET (CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE 100000)
31 SET (CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE 100000)
32
33 INCLUDE(CTestConfig.txt)
34 INCLUDE(CTestList.txt)
35
36 #SET (CMAKE_COMPILER_IS_GNUCXX 1)
37 #SET (CMAKE_COMPILER_IS_GNUCC 1)
38