added "make install" support for: unres (MD, MD-M, MIN) and maxlik
[unres.git] / source / xdrfpdb / src / CMakeLists.txt
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") 
 #=========================================