mirror of
https://github.com/arcan1s/moldyn.git
synced 2025-07-16 07:10:00 +00:00
+ added dependecies
+ added oxygen docs building + added versioning * some optimization
This commit is contained in:
@ -1,6 +1,4 @@
|
||||
trj2pdb - program that creates PDB file from trajetory snapshot
|
||||
Version: 1.2.0
|
||||
License: GPL
|
||||
|
||||
Usage:
|
||||
trj2pdb -i FILENAME -o FILEMANE [ -l LOGFILE ] [ -q ] [ -h ]
|
||||
|
@ -15,6 +15,7 @@ message (STATUS "${SUBPROJECT} HEADERS: ${HEADERS}")
|
||||
|
||||
# link libraries and compile
|
||||
add_executable (${MM_PREFIX}${SUBPROJECT} ${SOURCES} ${HEADERS})
|
||||
add_dependencies (${MM_PREFIX}${SUBPROJECT} ${LIBRARIES})
|
||||
target_link_libraries (${MM_PREFIX}${SUBPROJECT} ${ADDITIONAL_LIB} ${LIBRARIES})
|
||||
|
||||
# install properties
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "add_main.h"
|
||||
#include <version.h>
|
||||
#include <mathmech/coords.h>
|
||||
#include <mathmech/messages.h>
|
||||
#include <mathmech/print_struct.h>
|
||||
@ -58,7 +59,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
sprintf (tmp_str, " mm_trj2pdb\n");
|
||||
sprintf (tmp_str, "%sProgram for create PDB file from trajectory snapshot\n", tmp_str);
|
||||
sprintf (tmp_str, "%sVersion : 1.2.0 License : GPL\n", tmp_str);
|
||||
sprintf (tmp_str, "%sVersion : %s License : GPL\n", tmp_str, PROJ_VERSION);
|
||||
sprintf (tmp_str, "%s Evgeniy Alekseev aka arcanis\n", tmp_str);
|
||||
sprintf (tmp_str, "%s E-mail : esalexeev@gmail.com\n\n", tmp_str);
|
||||
sprintf (tmp_str, "%sUsage:\n", tmp_str);
|
||||
|
@ -3,26 +3,8 @@ set (SUBPROJECT_BINARY_DIR bin)
|
||||
set (SUBPROJECT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
|
||||
|
||||
# include_path
|
||||
include_directories (${SUBPROJECT_SOURCE_DIR})
|
||||
include_directories (${SUBPROJECT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}/../)
|
||||
|
||||
# executable path
|
||||
set (EXECUTABLE_OUTPUT_PATH ${SUBPROJECT_BINARY_DIR})
|
||||
|
||||
# verbose
|
||||
set (CMAKE_VERBOSE_MAKEFILE ON)
|
||||
|
||||
# flags
|
||||
if ( WITH_DEBUG_MODE )
|
||||
add_definitions ( -DDEBUG_MODE=1 )
|
||||
endif ()
|
||||
if ( CMAKE_COMPILER_IS_GNUCXX )
|
||||
set (ADD_CXX_FLAGS "-Wall")
|
||||
set (CMAKE_CXX_FLAGS "-O0 ${ADD_CXX_FLAGS}")
|
||||
set (CMAKE_CXX_FLAGS_DEBUG "-g -O0")
|
||||
set (CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
|
||||
elseif ( MSVC )
|
||||
set (ADD_CXX_FLAGS "/W4")
|
||||
set (CMAKE_CXX_FLAGS "${ADD_CXX_FLAGS}")
|
||||
else ()
|
||||
message ("Unknown compiler")
|
||||
endif ()
|
Reference in New Issue
Block a user