Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
f6d54cf519b9b3f6f52b3eaa371c428ebcb79b39
[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 ### Display the version
13 find_program(CAT NAMES cat)
14 exec_program("${CAT}" ARGS "version" OUTPUT_VARIABLE VERSION)
15 message("svn version: " ${VERSION})
16
17
18 ### Check 32bits or 64bits
19 INCLUDE (CheckTypeSize)
20 CHECK_TYPE_SIZE("long" SIZEOF_LONG)
21 IF(SIZEOF_LONG EQUAL 4)
22   SET(ARCH_32_BITS 1)
23 ELSE(SIZEOF_LONG EQUAL 4)
24   SET(ARCH_32_BITS 0)
25 ENDIF(SIZEOF_LONG EQUAL 4)
26
27
28 ### Enable tests
29 INCLUDE(CTestConfig.cmake)
30 ENABLE_TESTING()
31 INCLUDE(CTest)
32 INCLUDE(Dart)
33 INCLUDE(CTestList.txt)
34
35 # Install the CTest configuration in the build dir
36 configure_file(CTestConfig.cmake ${CMAKE_BINARY_DIR}/CTestCustom.ctest COPYONLY)
37
38 #SET (CMAKE_COMPILER_IS_GNUCXX 1)
39 #SET (CMAKE_COMPILER_IS_GNUCC 1)
40