From: Dawid Jagiela Date: Thu, 19 Apr 2012 22:52:59 +0000 (+0200) Subject: Revert "CMake file for xdrf library" X-Git-Tag: v.3.2~115^2~34 X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?p=unres.git;a=commitdiff_plain;h=4dd6545a13d055f8b951dd893270dc722212dd60 Revert "CMake file for xdrf library" This reverts commit 154f05b81b221aecfb80de0cc515c23b65909c85. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 329c3ae..631ddb6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ # cmake_minimum_required(VERSION 2.8) -project(unrespack Fortran C) +project(unrespack C Fortran) set(UNRES_MAJOR 3) set(UNRES_MINOR 1) set(UNRES_PATCH 0) @@ -21,7 +21,7 @@ endif (NOT CMAKE_BUILD_TYPE) # Set the force field if (NOT UNRES_FF) - set(UNRES_FF "GAB" "E0LL2Y" CACHE STRING "Choose the force field, options are: GAB E0LL2Y" ) + set(UNRES_FF "GAB" "E0LL2Y" CACHE STRING "Choose the force field, options are: GAB E0LL2Y " ) #message ( "Please set the Force field (UNRES_FF) to : GAB, 0ELE" ) endif (NOT UNRES_FF) diff --git a/source/unres/src_MD/CMakeLists.txt b/source/unres/src_MD/CMakeLists.txt index 4e763ba..147ca4c 100644 --- a/source/unres/src_MD/CMakeLists.txt +++ b/source/unres/src_MD/CMakeLists.txt @@ -4,9 +4,6 @@ enable_language (Fortran) -# xdrf library -add_subdirectory(xdrf) - # Set sources set(UNRES_MD_SRC0 unres.F arcos.f cartprint.f chainbuild.F convert.f initialize_p.F matmult.f readrtns.F parmread.F gen_rand_conf.F @@ -39,18 +36,14 @@ set_property(SOURCE ${UNRES_MD_SRC3} PROPERTY CMAKE_Fortran_FLAGS ${FFLAGS3} ) if(UNRES_FF STREQUAL "GAB") - set(CMAKE_CXX_FLAGS -DPROCOR -DLINUX -DPGI -DUNRES -DISNAN -DMP -DMPI -DSPLITELE -DLANGO - -DCRYST_BOND -DCRYST_THETA -DCRYST_SC ) - set(UNRES_BIN unres_ifort_MPICH_GAB.exe ) + set(CPPFLAGS -DPROCOR -DLINUX -DPGI -DUNRES -DISNAN -DMP -DMPI -DSPLITELE -DLANGO -DCRYST_BOND + -DCRYST_THETA -DCRYST_SC ) else(UNRES_FF strequal "E0LL2Y") - set(CMAKE_CXX__FLAGS -DPROCOR -DLINUX -DPGI -DUNRES -DISNAN -DMP -DMPI -DSPLITELE -DLANG0 ) + set(CPPFLAGS -DPROCOR -DLINUX -DPGI -DUNRES -DISNAN -DMP -DMPI -DSPLITELE -DLANG0 ) endif() -add_executable(compinfo compinfo.c) -add_custom_command(OUTPUT cinfo.f COMMAND ${CMAKE_CURRENT_BINARY_DIR}/compinfo | true ) -add_executable(${UNRES_BIN} ${UNRES_MD_SRC0} ${UNRES_MD_SRC3} cinfo.f ) - +add_executable(unres ${UNRES_MD_SRC0} ${UNRES_MD_SRC3} ) diff --git a/source/unres/src_MD/xdrf/CMakeLists.txt b/source/unres/src_MD/xdrf/CMakeLists.txt deleted file mode 100644 index a715204..0000000 --- a/source/unres/src_MD/xdrf/CMakeLists.txt +++ /dev/null @@ -1,19 +0,0 @@ -# -# CMake project file for UNRESPACK -# - -# m4 macro processor -add_custom_command( - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libxdrf.c - COMMAND m4 - ARGS ${CMAKE_CURRENT_SOURCE_DIR}/underscore.m4 ${CMAKE_CURRENT_SOURCE_DIR}/libxdrf.m4 > ${CMAKE_CURRENT_BINARY_DIR}/libxdrf.c - VERBATIM -) - -# add headers from current dir -include_directories(${CMAKE_CURRENT_SOURCE_DIR}) - -# compile the libxdrf library -add_library(xdrf STATIC libxdrf.c ftocstr.c) - -