From 6853e9cb7d1d8599c4225ed949f7232c05987939 Mon Sep 17 00:00:00 2001 From: Cezary Czaplewski Date: Wed, 30 Sep 2015 15:26:20 +0200 Subject: [PATCH] cmake is working for cluster_unres --- source/cluster/unres/src/CMakeLists.txt | 12 ++++++++++-- source/cluster/unres/src/xdrf | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) create mode 120000 source/cluster/unres/src/xdrf diff --git a/source/cluster/unres/src/CMakeLists.txt b/source/cluster/unres/src/CMakeLists.txt index 389c3d1..b8ea2c2 100644 --- a/source/cluster/unres/src/CMakeLists.txt +++ b/source/cluster/unres/src/CMakeLists.txt @@ -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 diff --git a/source/cluster/unres/src/xdrf b/source/cluster/unres/src/xdrf new file mode 120000 index 0000000..b320ac0 --- /dev/null +++ b/source/cluster/unres/src/xdrf @@ -0,0 +1 @@ +../../../lib/xdrf \ No newline at end of file -- 1.7.9.5