X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=source%2Fxdrfpdb%2Fsrc%2FCMakeLists.txt;h=ac5142d3e5d288a0728dc7002cc343ef57ce1c2c;hb=52166346a9daa454a65b719c708cbcd6fe96da34;hp=4e398c16ade56966e52c547464da3645730e4bb9;hpb=1b470325cddfb529c605552dd37cb0e4b0dc0e2b;p=unres.git diff --git a/source/xdrfpdb/src/CMakeLists.txt b/source/xdrfpdb/src/CMakeLists.txt index 4e398c1..ac5142d 100644 --- a/source/xdrfpdb/src/CMakeLists.txt +++ b/source/xdrfpdb/src/CMakeLists.txt @@ -57,7 +57,7 @@ set(UNRES_XDRF_PP_SRC xdrf2x.F ) -set(CPPFLAGS "PROCOR -DUNRES -DMP -DMPI -DSPLITELE -DNEWUNRES" ) +set(CPPFLAGS "PROCOR -DUNRES -DSPLITELE -DNEWUNRES" ) #========================================= # System specific flags @@ -71,7 +71,7 @@ set_property(SOURCE ${UNRES_XDRF_PP_SRC} PROPERTY COMPILE_DEFINITIONS ${CPPFLAGS #========================================= -# Build the binaries +# Build the binaries (used by "make") #========================================= add_executable(xdrf2pdb ${UNRES_XDRF_XDRF2PDB_SRC} ) target_link_libraries( xdrf2pdb xdrf ) @@ -86,4 +86,51 @@ add_executable(xdrf2ang ${UNRES_XDRF_XDRF2XANG_SRC} ) target_link_libraries( xdrf2ang xdrf ) +#========================================= +# INSTALL (used by "make install") +#========================================= +install(TARGETS xdrf2pdb RUNTIME DESTINATION unrespack/bin) +install(TARGETS xdrf2pdb-m RUNTIME DESTINATION unrespack/bin) +install(TARGETS xdrf2x RUNTIME DESTINATION unrespack/bin) +install(TARGETS xdrf2ang RUNTIME DESTINATION unrespack/bin) + +#========================================= +# TESTS (used by "ctest") +#========================================= + + +# Create files needed for tests + +file( COPY ${CMAKE_SOURCE_DIR}/ctest/ala10one.seq + DESTINATION ${CMAKE_CURRENT_BINARY_DIR} ) + +file( COPY ${CMAKE_SOURCE_DIR}/ctest/ala10three.seq + DESTINATION ${CMAKE_CURRENT_BINARY_DIR} ) + +file( COPY ${CMAKE_SOURCE_DIR}/ctest/1L2Yone.seq + DESTINATION ${CMAKE_CURRENT_BINARY_DIR} ) + +file( COPY ${CMAKE_SOURCE_DIR}/ctest/1L2Ythree.seq + DESTINATION ${CMAKE_CURRENT_BINARY_DIR} ) + +file( COPY ${CMAKE_SOURCE_DIR}/ctest/ala10MD.cx + DESTINATION ${CMAKE_CURRENT_BINARY_DIR} ) + +file( COPY ${CMAKE_SOURCE_DIR}/ctest/1L2Y_MREMD_MD000.cx + DESTINATION ${CMAKE_CURRENT_BINARY_DIR} ) + + +# Test xdrf2pdb +add_test(NAME XDRF2PDB-one COMMAND xdrf2pdb one ala10one.seq ala10MD.cx ) +add_test(NAME XDRF2PDB-three COMMAND xdrf2pdb three ala10three.seq ala10MD.cx ) + +# Test xdrf2pdb-m +add_test(NAME XDRF2PDB-M-one COMMAND xdrf2pdb-m one 1L2Yone.seq 1L2Y_MREMD_MD000.cx 32 30 ) +add_test(NAME XDRF2PDB-M-three COMMAND xdrf2pdb-m three 1L2Ythree.seq 1L2Y_MREMD_MD000.cx 32 30 ) + +# Test xdrf2ang +add_test(NAME XDRF2ANG-one COMMAND xdrf2ang one ala10one.seq ala10MD.cx ) +add_test(NAME XDRF2ANG-three COMMAND xdrf2ang three ala10three.seq ala10MD.cx ) + +