cmake for unres4 wham
[unres4.git] / source / unres / CMakeLists.txt
index 7c7359c..cc0b694 100644 (file)
@@ -29,10 +29,10 @@ set(UNRES_MD_SRC0
         io_base.f90
         energy.f90
         check_bond.f90
-        control.f90
+        control.F90
         MPI.f90
         regularize.f90
-        compare.f90
+        compare.F90
         map.f90
         muca_md.f90
         MCM_MD.f90
@@ -203,9 +203,9 @@ set_property(SOURCE ${UNRES_MD_SRCS} PROPERTY COMPILE_DEFINITIONS ${CPPFLAGS} )
 #=========================================
 # Build the binary
 #=========================================
-add_executable(UNRES_BIN-MD ${UNRES_MD_SRCS} )
-set_target_properties(UNRES_BIN-MD PROPERTIES OUTPUT_NAME ${UNRES_BIN})
-set_property(TARGET UNRES_BIN-MD PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin )
+add_executable(UNRES_BIN ${UNRES_MD_SRCS} )
+set_target_properties(UNRES_BIN PROPERTIES OUTPUT_NAME ${UNRES_BIN})
+set_property(TARGET UNRES_BIN PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin )
 
 
 #=========================================
@@ -214,16 +214,16 @@ set_property(TARGET UNRES_BIN-MD PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINAR
 # link MPI library (libmpich.a)  
 
 if(UNRES_WITH_MPI)
-  target_link_libraries( UNRES_BIN-MD ${MPI_Fortran_LIBRARIES} )
+  target_link_libraries( UNRES_BIN ${MPI_Fortran_LIBRARIES} )
 endif(UNRES_WITH_MPI)
 # link libxdrf.a 
 #message("UNRES_XDRFLIB=${UNRES_XDRFLIB}")
-target_link_libraries( UNRES_BIN-MD xdrf )
+target_link_libraries( UNRES_BIN xdrf )
 
 #=========================================
 # Install Path
 #=========================================
-install(TARGETS UNRES_BIN-MD DESTINATION ${CMAKE_INSTALL_PREFIX}) 
+install(TARGETS UNRES_BIN DESTINATION ${CMAKE_INSTALL_PREFIX}) 
 
 #=========================================
 # TESTS