cmake is working for cluster_unres
[unres.git] / source / cluster / unres / src / CMakeLists.txt
index 389c3d1..b8ea2c2 100644 (file)
@@ -18,7 +18,7 @@ set(UNRES_CLUSTER_UNRES_SRC0
        hc.f
        initialize.f
        intcor.f
-       main_clust.f
+       main_clust.F
        matmult.f
        misc.f
        noyes.f
@@ -30,6 +30,7 @@ set(UNRES_CLUSTER_UNRES_SRC0
        timing.F
        track.F
        wrtclust.f
+       cxread.F
 )
 
 set(UNRES_CLUSTER_PP_SRC
@@ -56,8 +57,9 @@ set_property(SOURCE ${UNRES_CLUSTER_SRC0} PROPERTY COMPILE_FLAGS ${FFLAGS0} )
 #=========================================
 # System specific flags
 #=========================================
+set(CPPFLAGS "NEWUNRES")
 if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
-  set(CPPFLAGS "${CPPFLAGS} LINUX") 
+  set(CPPFLAGS "${CPPFLAGS} -DLINUX") 
 endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
 
 
@@ -85,6 +87,12 @@ add_executable(UNRES_CLUSTER_BIN ${UNRES_CLUSTER_SRCS} )
 set_target_properties(UNRES_CLUSTER_BIN PROPERTIES OUTPUT_NAME ${UNRES_CLUSTER_BIN})
 set_property(TARGET UNRES_CLUSTER_BIN PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin )
 
+#=========================================
+# Link libraries
+#=========================================
+# link libxdrf.a 
+target_link_libraries( UNRES_CLUSTER_BIN xdrf )
+
 
 #=========================================
 # Install Path