source: PSPA/madxPSPA/CMakeLists.txt

Last change on this file was 430, checked in by touze, 11 years ago

import madx-5.01.00

File size: 1.6 KB
Line 
1# Suppress warnings on cygwin
2# win32 is not anymore equal to 1 on cygwin
3# with newer cmake. We still assume so though..
4# Note:
5# - In cygwin, the boolean CYGWIN is defined and 1
6# - On Windows, WIN32 bool is defined, but
7# after cmake 2.8.4 it's normally zero when using
8# cygwin.
9set(CMAKE_LEGACY_CYGWIN_WIN32 0)
10
11cmake_minimum_required(VERSION 2.6)
12
13PROJECT(madX C CXX Fortran)
14#add name of languages used in the project as well
15
16# Some policies regarding configure
17# warnings we do not want..
18if(COMMAND cmake_policy)
19  cmake_policy(SET CMP0003 NEW)
20endif(COMMAND cmake_policy)
21
22# add source dir as a place for CMake modules (e.g. FindGSL.cmake)
23set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
24
25# When we don't need to support cmake <2.8.3 anymore, remove these three lines:
26if(CMAKE_VERSION VERSION_LESS "2.8.3")
27    set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/compilers")
28endif()
29
30# Some initializations specific for Mad-X
31include(madxInit)
32
33# predefined macros...
34include(install_macros)
35
36# Defining project options:
37include(setupOptions)
38
39#
40# we call a subscript that sets up our compiler specific flags...
41#
42include(setupCompilerSpecifics)
43
44
45# we call a subscript that will set up additional flags depending on
46# architecture chosen.
47include(setupArchSpecifics)
48
49
50# Add sources subdirectory:
51add_subdirectory(libs)
52add_subdirectory(src)
53add_subdirectory(tools)
54add_subdirectory(syntax)
55
56# External projects...
57include(setupExternalProjects)
58
59# Setting up testing:
60include(setupTesting)
61# Add test folders:
62include(numdifftests)
Note: See TracBrowser for help on using the repository browser.