CMake project files added
[unres.git] / CMakeLists.txt
1 #
2 # CMake project file for UNRES 
3 #
4 cmake_minimum_required(VERSION 2.8)
5
6 project(unrespack C Fortran)
7 set(UNRES_MAJOR 3)
8 set(UNRES_MINOR 1)
9 set(UNRES_PATCH 0)
10 set(UNRES_VERSION ${SIMPLE_MAJOR}.${SIMPLE_MINOR}.${SIMPLE_PATCH})
11
12 enable_language (Fortran)
13
14 # make sure that the default is a RELEASE
15 if (NOT CMAKE_BUILD_TYPE)
16   set (CMAKE_BUILD_TYPE RELEASE CACHE STRING
17       "Choose the type of build, options are: None Debug Release."
18       FORCE)
19 endif (NOT CMAKE_BUILD_TYPE)
20
21
22 # Set the force field
23 if (NOT UNRES_FF)
24   set(UNRES_FF "GAB" "E0LL2Y" CACHE STRING "Choose the force field, options are: GAB E0LL2Y " )
25   #message ( "Please set the Force field (UNRES_FF) to : GAB, 0ELE" )
26 endif (NOT UNRES_FF)
27
28 add_subdirectory(source)
29  
30