removed CSA_DiL sources from CMake
[unres.git] / source / maxlik / src_CSA / CMakeLists.txt
1 #
2 # CMake project file for UNRES with MD for single chains
3
4 cmake_minimum_required(VERSION 2.8)
5 enable_language (Fortran)
6
7
8 #================================
9 # Set source file lists
10 #================================
11 set(MAXLIK_SRC0
12         cored.f
13         maxlik-opt-multprot.f
14         minsumsl.f
15         rmdd.f
16         sumsld.f
17
18
19
20 #================================================
21 # Set comipiler flags for different sourcefiles  
22 #================================================
23  if (Fortran_COMPILER_NAME STREQUAL "ifort")
24    set(FFLAGS0 "-c -g -fbounds-check -I." ) 
25    set(FFLAGS1 "-c -I." ) 
26  elseif (Fortran_COMPILER_NAME STREQUAL "gfortran")
27    set(FFLAGS0 "-std=legacy -c -g -fbounds-check -I." ) 
28    set(FFLAGS1 "-std=legacy -c -I." ) 
29 endif (Fortran_COMPILER_NAME STREQUAL "ifort")
30
31 #=========================================
32 # System specific flags
33 #=========================================
34 if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
35   set(CPPFLAGS "${CPPFLAGS} -DLINUX") 
36 endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
37
38 #=========================================
39 # Set binary name 
40 #=========================================
41 set(MAXLIK_BIN "maxlik_CSA")
42
43
44 #=========================================
45 # Build the binary
46 #=========================================
47 set(MAXLIK_SRCS ${MAXLIK_SRC0} )
48
49
50 #=========================================
51 # Build the binary
52 #=========================================
53 add_executable(MAXLIK ${MAXLIK_SRCS} )
54 set_target_properties(MAXLIK PROPERTIES OUTPUT_NAME ${MAXLIK_BIN})
55 set_property(TARGET MAXLIK PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin )
56
57 #=========================================
58 # Install Path
59 #=========================================
60 install(TARGETS MAXLIK DESTINATION ${CMAKE_INSTALL_PREFIX})
61