From: Dawid Jagiela Date: Wed, 23 Jul 2014 11:05:07 +0000 (+0200) Subject: added "make install" support for: unres (MD, MD-M, MIN) and maxlik X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=commitdiff_plain;ds=sidebyside;h=74bdd704fd49f47c96d95a5a70f37a2e6f46ace9;p=unres.git added "make install" support for: unres (MD, MD-M, MIN) and maxlik --- diff --git a/source/maxlik/src_CSA/CMakeLists.txt b/source/maxlik/src_CSA/CMakeLists.txt index 933c70f..82884df 100644 --- a/source/maxlik/src_CSA/CMakeLists.txt +++ b/source/maxlik/src_CSA/CMakeLists.txt @@ -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) diff --git a/source/unres/src_MD-M/CMakeLists.txt b/source/unres/src_MD-M/CMakeLists.txt index 1f40e66..763301c 100644 --- a/source/unres/src_MD-M/CMakeLists.txt +++ b/source/unres/src_MD-M/CMakeLists.txt @@ -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 #========================================= diff --git a/source/unres/src_MD/CMakeLists.txt b/source/unres/src_MD/CMakeLists.txt index eeb8c45..c038066 100644 --- a/source/unres/src_MD/CMakeLists.txt +++ b/source/unres/src_MD/CMakeLists.txt @@ -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 #========================================= diff --git a/source/unres/src_MIN/CMakeLists.txt b/source/unres/src_MIN/CMakeLists.txt index 3d930f7..dcc86b1 100644 --- a/source/unres/src_MIN/CMakeLists.txt +++ b/source/unres/src_MIN/CMakeLists.txt @@ -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 #========================================= diff --git a/source/xdrfpdb/src/CMakeLists.txt b/source/xdrfpdb/src/CMakeLists.txt index fbe654c..ac5142d 100644 --- a/source/xdrfpdb/src/CMakeLists.txt +++ b/source/xdrfpdb/src/CMakeLists.txt @@ -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") #=========================================