added "make install" support for: unres (MD, MD-M, MIN) and maxlik
authorDawid Jagiela <lightnir@chem.univ.gda.pl>
Wed, 23 Jul 2014 11:05:07 +0000 (13:05 +0200)
committerDawid Jagiela <lightnir@chem.univ.gda.pl>
Wed, 23 Jul 2014 11:05:07 +0000 (13:05 +0200)
source/maxlik/src_CSA/CMakeLists.txt
source/unres/src_MD-M/CMakeLists.txt
source/unres/src_MD/CMakeLists.txt
source/unres/src_MIN/CMakeLists.txt
source/xdrfpdb/src/CMakeLists.txt

index 933c70f..82884df 100644 (file)
@@ -53,4 +53,8 @@ set(MAXLIK_SRCS ${MAXLIK_SRC0} )
 add_executable(MAXLIK ${MAXLIK_SRCS} )
 set_target_properties(MAXLIK PROPERTIES OUTPUT_NAME ${MAXLIK_BIN})
 
+#=========================================
+# Install maxlik binary (used by "make install")
+#=========================================
 
+install(TARGETS MAXLIK RUNTIME DESTINATION unrespack/bin)
index 1f40e66..763301c 100644 (file)
@@ -333,6 +333,12 @@ endif(UNRES_WITH_MPI)
 target_link_libraries( UNRES_BIN-MD-M xdrf )
 
 #=========================================
+# INSTALL
+#=========================================
+
+install(TARGETS UNRES_BIN-MD-M RUNTIME DESTINATION unrespack/bin)
+
+#=========================================
 # TESTS 
 #=========================================
 
index eeb8c45..c038066 100644 (file)
@@ -308,6 +308,12 @@ endif(UNRES_WITH_MPI)
 target_link_libraries( UNRES_BIN-MD xdrf )
 
 #=========================================
+# INSTALL 
+#=========================================
+install(TARGETS UNRES_BIN-MD RUNTIME DESTINATION unrespack/bin)
+
+#=========================================
 # TESTS 
 #=========================================
 
index 3d930f7..dcc86b1 100644 (file)
@@ -219,6 +219,12 @@ endif (Fortran_COMPILER_NAME STREQUAL "ifort")
 #set_property(TARGET ${UNRES_BIN} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/unres/MD )
 
 #=========================================
+# INSTALL 
+#=========================================
+
+install(TARGETS UNRES_BIN-MIN RUNTIME DESTINATION unrespack/bin)
+
+#=========================================
 # TESTS 
 #=========================================
 
index fbe654c..ac5142d 100644 (file)
@@ -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 )
@@ -87,7 +87,15 @@ target_link_libraries( xdrf2ang xdrf )
 
 
 #=========================================
-# TESTS
+# 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") 
 #=========================================