Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyelewis committed Aug 9, 2015
2 parents 9a9c9e2 + cfb7d2a commit 872f651
Show file tree
Hide file tree
Showing 50 changed files with 469 additions and 196 deletions.
83 changes: 40 additions & 43 deletions source/CMakeLists.suffix.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,6 @@ add_executable(
${NORMSOURCES_EXECUTABLES_CATH_SUPERPOSE}
)

if ( DEFINED ENV{BUILD_EXTRA_CATH_TOOLS} )
add_executable(
snap-judgement
${NORMSOURCES_EXECUTABLES_SNAP_JUDGEMENT}
)

add_executable(
check-pdb
${NORMSOURCES_EXECUTABLES_CATH_CHECK_PDB}
)
endif ( DEFINED ENV{BUILD_EXTRA_CATH_TOOLS} )

#####################################################################

target_link_libraries( build-test normsources_cath_superpose normsources_test std_normsources biop gen pthread ${Boost_LIBRARIES} ${RT_LIBRARY} )
Expand All @@ -121,39 +109,48 @@ add_dependencies( cath-score-align built_bioplib_libraries )
add_dependencies( cath-ssap built_bioplib_libraries )
add_dependencies( cath-superpose built_bioplib_libraries )

if ( DEFINED ENV{BUILD_EXTRA_CATH_TOOLS} )
target_link_libraries( snap-judgement normsources_cath_superpose std_normsources biop gen pthread ${Boost_LIBRARIES} ${RT_LIBRARY} )
target_link_libraries( check-pdb std_normsources biop gen pthread ${Boost_LIBRARIES} ${RT_LIBRARY} )

add_dependencies( snap-judgement built_bioplib_libraries )
add_dependencies( check-pdb built_bioplib_libraries )
endif ( DEFINED ENV{BUILD_EXTRA_CATH_TOOLS} )

#####################################################################

if ( DEFINED ENV{BUILD_EXTRA_CATH_TOOLS} )

add_executable(
snap-judgement
${NORMSOURCES_EXECUTABLES_SNAP_JUDGEMENT}
)

add_executable(
check-pdb
${NORMSOURCES_EXECUTABLES_CATH_CHECK_PDB}
)

add_executable(
develtest
executables/develtest/develtest.cpp

alignment/io/align_scaffold_test.cpp
alignment/alignment.cpp
alignment/alignment_row.cpp
alignment/io/align_scaffold.cpp
alignment/residue_score/alignment_residue_scores.cpp
exception/invalid_argument_exception.cpp
test/alignment_fixture.cpp

# common/boost_addenda/range/adaptor/adaptor_test.cpp
# exception/invalid_argument_exception.cpp

# common/file/open_fstream.cpp
# exception/invalid_argument_exception.cpp
# exception/runtime_error_exception.cpp
# structure/geometry/orientation_covering.cpp
# structure/geometry/orientation_covering_test.cpp
# structure/geometry/quat_rot.cpp
)

target_link_libraries( snap-judgement normsources_cath_superpose std_normsources biop gen pthread ${Boost_LIBRARIES} ${RT_LIBRARY} )
target_link_libraries( check-pdb std_normsources biop gen pthread ${Boost_LIBRARIES} ${RT_LIBRARY} )
target_link_libraries( develtest pthread ${Boost_LIBRARIES} )

add_dependencies( snap-judgement built_bioplib_libraries )
add_dependencies( check-pdb built_bioplib_libraries )






# add_executable(
# develtest
# ${NORMSOURCES_EXECUTABLES_DEVELTEST}
#
# #common/boost_addenda/range/adaptor/adaptor_test.cpp
# #exception/invalid_argument_exception.cpp
#
# common/file/open_fstream.cpp
# exception/invalid_argument_exception.cpp
# exception/runtime_error_exception.cpp
# structure/geometry/orientation_covering.cpp
# structure/geometry/orientation_covering_test.cpp
# structure/geometry/quat_rot.cpp
# )
#SET_TARGET_PROPERTIES( develtest PROPERTIES LINK_FLAGS "-Wl,--unresolved-symbols=ignore-in-object-files" )
# target_link_libraries( develtest pthread ${Boost_LIBRARIES} )


endif ( DEFINED ENV{BUILD_EXTRA_CATH_TOOLS} )
183 changes: 96 additions & 87 deletions source/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
include_directories( ${Boost_INCLUDE_DIR} )

##### BEGINNING OF AUTO-GENERATED #####
set(
NORMSOURCES_ALIGNMENT_ALIGNMENT_OUTPUTTER
alignment/alignment_outputter/horiz_align_outputter.cpp
alignment/alignment_outputter/html_align_outputter.cpp
)

set(
NORMSOURCES_ALIGNMENT_ALIGNMENT_REFINER_DETAIL
alignment/alignment_refiner/detail/alignment_split.cpp
alignment/alignment_refiner/detail/alignment_split_list.cpp
alignment/alignment_refiner/detail/alignment_split_mapping.cpp
)

set(
NORMSOURCES_ALIGNMENT_ALIGNMENT_REFINER
alignment/alignment_refiner/alignment_refiner.cpp
${NORMSOURCES_ALIGNMENT_ALIGNMENT_REFINER_DETAIL}
)

set(
NORMSOURCES_ALIGNMENT_COMMON_ATOM_SELECTION_POLICY
alignment/common_atom_selection_policy/common_atom_select_ca_policy.cpp
Expand Down Expand Up @@ -89,6 +70,32 @@ set(
alignment/gap/gap_penalty.cpp
)

set(
NORMSOURCES_ALIGNMENT_IO_OUTPUTTER
alignment/io/outputter/horiz_align_outputter.cpp
alignment/io/outputter/html_align_outputter.cpp
)

set(
NORMSOURCES_ALIGNMENT_IO
alignment/io/align_scaffold.cpp
alignment/io/alignment_io.cpp
${NORMSOURCES_ALIGNMENT_IO_OUTPUTTER}
)

set(
NORMSOURCES_ALIGNMENT_REFINER_DETAIL
alignment/refiner/detail/alignment_split.cpp
alignment/refiner/detail/alignment_split_list.cpp
alignment/refiner/detail/alignment_split_mapping.cpp
)

set(
NORMSOURCES_ALIGNMENT_REFINER
alignment/refiner/alignment_refiner.cpp
${NORMSOURCES_ALIGNMENT_REFINER_DETAIL}
)

set(
NORMSOURCES_ALIGNMENT_RESIDUE_NAME_ALIGN_DETAIL
alignment/residue_name_align/detail/residue_name_align_map.cpp
Expand All @@ -112,16 +119,15 @@ set(
alignment/alignment_action.cpp
alignment/alignment_context.cpp
alignment/alignment_coord_extractor.cpp
alignment/alignment_io.cpp
${NORMSOURCES_ALIGNMENT_ALIGNMENT_OUTPUTTER}
${NORMSOURCES_ALIGNMENT_ALIGNMENT_REFINER}
alignment/alignment_row.cpp
${NORMSOURCES_ALIGNMENT_COMMON_ATOM_SELECTION_POLICY}
${NORMSOURCES_ALIGNMENT_COMMON_RESIDUE_SELECTION_POLICY}
${NORMSOURCES_ALIGNMENT_DETAIL}
${NORMSOURCES_ALIGNMENT_DYN_PROG_ALIGN}
${NORMSOURCES_ALIGNMENT_GAP}
${NORMSOURCES_ALIGNMENT_IO}
alignment/pair_alignment.cpp
${NORMSOURCES_ALIGNMENT_REFINER}
${NORMSOURCES_ALIGNMENT_RESIDUE_NAME_ALIGN}
${NORMSOURCES_ALIGNMENT_RESIDUE_SCORE}
)
Expand Down Expand Up @@ -901,25 +907,6 @@ set(
test/log_to_ostream_guard.cpp
)

set(
TESTSOURCES_ALIGNMENT_ALIGNMENT_OUTPUTTER
alignment/alignment_outputter/horiz_align_outputter_test.cpp
alignment/alignment_outputter/html_align_outputter_test.cpp
)

set(
TESTSOURCES_ALIGNMENT_ALIGNMENT_REFINER_DETAIL
alignment/alignment_refiner/detail/alignment_split_list_test.cpp
alignment/alignment_refiner/detail/alignment_split_mapping_test.cpp
alignment/alignment_refiner/detail/alignment_split_test.cpp
)

set(
TESTSOURCES_ALIGNMENT_ALIGNMENT_REFINER
alignment/alignment_refiner/alignment_refiner_test.cpp
${TESTSOURCES_ALIGNMENT_ALIGNMENT_REFINER_DETAIL}
)

set(
TESTSOURCES_ALIGNMENT_COMMON_RESIDUE_SELECTION_POLICY
alignment/common_residue_selection_policy/common_residue_selection_policy_test.cpp
Expand Down Expand Up @@ -961,6 +948,32 @@ set(
alignment/gap/gap_penalty_test.cpp
)

set(
TESTSOURCES_ALIGNMENT_IO_OUTPUTTER
alignment/io/outputter/horiz_align_outputter_test.cpp
alignment/io/outputter/html_align_outputter_test.cpp
)

set(
TESTSOURCES_ALIGNMENT_IO
alignment/io/align_scaffold_test.cpp
alignment/io/alignment_io_test.cpp
${TESTSOURCES_ALIGNMENT_IO_OUTPUTTER}
)

set(
TESTSOURCES_ALIGNMENT_REFINER_DETAIL
alignment/refiner/detail/alignment_split_list_test.cpp
alignment/refiner/detail/alignment_split_mapping_test.cpp
alignment/refiner/detail/alignment_split_test.cpp
)

set(
TESTSOURCES_ALIGNMENT_REFINER
alignment/refiner/alignment_refiner_test.cpp
${TESTSOURCES_ALIGNMENT_REFINER_DETAIL}
)

set(
TESTSOURCES_ALIGNMENT_RESIDUE_NAME_ALIGN_DETAIL
alignment/residue_name_align/detail/residue_name_align_map_test.cpp
Expand All @@ -983,14 +996,13 @@ set(
alignment/alignment_action_test.cpp
alignment/alignment_context_test.cpp
alignment/alignment_coord_extractor_test.cpp
alignment/alignment_io_test.cpp
${TESTSOURCES_ALIGNMENT_ALIGNMENT_OUTPUTTER}
${TESTSOURCES_ALIGNMENT_ALIGNMENT_REFINER}
alignment/alignment_row_test.cpp
alignment/alignment_test.cpp
${TESTSOURCES_ALIGNMENT_COMMON_RESIDUE_SELECTION_POLICY}
${TESTSOURCES_ALIGNMENT_DYN_PROG_ALIGN}
${TESTSOURCES_ALIGNMENT_GAP}
${TESTSOURCES_ALIGNMENT_IO}
${TESTSOURCES_ALIGNMENT_REFINER}
${TESTSOURCES_ALIGNMENT_RESIDUE_NAME_ALIGN}
${TESTSOURCES_ALIGNMENT_RESIDUE_SCORE}
)
Expand Down Expand Up @@ -1656,18 +1668,6 @@ add_executable(
${NORMSOURCES_EXECUTABLES_CATH_SUPERPOSE}
)

if ( DEFINED ENV{BUILD_EXTRA_CATH_TOOLS} )
add_executable(
snap-judgement
${NORMSOURCES_EXECUTABLES_SNAP_JUDGEMENT}
)

add_executable(
check-pdb
${NORMSOURCES_EXECUTABLES_CATH_CHECK_PDB}
)
endif ( DEFINED ENV{BUILD_EXTRA_CATH_TOOLS} )

#####################################################################

target_link_libraries( build-test normsources_cath_superpose normsources_test std_normsources biop gen pthread ${Boost_LIBRARIES} ${RT_LIBRARY} )
Expand All @@ -1682,40 +1682,49 @@ add_dependencies( cath-score-align built_bioplib_libraries )
add_dependencies( cath-ssap built_bioplib_libraries )
add_dependencies( cath-superpose built_bioplib_libraries )

if ( DEFINED ENV{BUILD_EXTRA_CATH_TOOLS} )
target_link_libraries( snap-judgement normsources_cath_superpose std_normsources biop gen pthread ${Boost_LIBRARIES} ${RT_LIBRARY} )
target_link_libraries( check-pdb std_normsources biop gen pthread ${Boost_LIBRARIES} ${RT_LIBRARY} )

add_dependencies( snap-judgement built_bioplib_libraries )
add_dependencies( check-pdb built_bioplib_libraries )
endif ( DEFINED ENV{BUILD_EXTRA_CATH_TOOLS} )

#####################################################################

if ( DEFINED ENV{BUILD_EXTRA_CATH_TOOLS} )

add_executable(
snap-judgement
${NORMSOURCES_EXECUTABLES_SNAP_JUDGEMENT}
)

add_executable(
check-pdb
${NORMSOURCES_EXECUTABLES_CATH_CHECK_PDB}
)

add_executable(
develtest
executables/develtest/develtest.cpp

alignment/io/align_scaffold_test.cpp
alignment/alignment.cpp
alignment/alignment_row.cpp
alignment/io/align_scaffold.cpp
alignment/residue_score/alignment_residue_scores.cpp
exception/invalid_argument_exception.cpp
test/alignment_fixture.cpp

# common/boost_addenda/range/adaptor/adaptor_test.cpp
# exception/invalid_argument_exception.cpp

# common/file/open_fstream.cpp
# exception/invalid_argument_exception.cpp
# exception/runtime_error_exception.cpp
# structure/geometry/orientation_covering.cpp
# structure/geometry/orientation_covering_test.cpp
# structure/geometry/quat_rot.cpp
)

target_link_libraries( snap-judgement normsources_cath_superpose std_normsources biop gen pthread ${Boost_LIBRARIES} ${RT_LIBRARY} )
target_link_libraries( check-pdb std_normsources biop gen pthread ${Boost_LIBRARIES} ${RT_LIBRARY} )
target_link_libraries( develtest pthread ${Boost_LIBRARIES} )

add_dependencies( snap-judgement built_bioplib_libraries )
add_dependencies( check-pdb built_bioplib_libraries )






# add_executable(
# develtest
# ${NORMSOURCES_EXECUTABLES_DEVELTEST}
#
# #common/boost_addenda/range/adaptor/adaptor_test.cpp
# #exception/invalid_argument_exception.cpp
#
# common/file/open_fstream.cpp
# exception/invalid_argument_exception.cpp
# exception/runtime_error_exception.cpp
# structure/geometry/orientation_covering.cpp
# structure/geometry/orientation_covering_test.cpp
# structure/geometry/quat_rot.cpp
# )
#SET_TARGET_PROPERTIES( develtest PROPERTIES LINK_FLAGS "-Wl,--unresolved-symbols=ignore-in-object-files" )
# target_link_libraries( develtest pthread ${Boost_LIBRARIES} )


endif ( DEFINED ENV{BUILD_EXTRA_CATH_TOOLS} )

2 changes: 1 addition & 1 deletion source/alignment/alignment_action_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "alignment/alignment_action.h"

#include "alignment/alignment.h"
#include "alignment/alignment_io.h"
#include "alignment/io/alignment_io.h"
#include "common/test_predicate/istream_and_file_equal.h"
#include "structure/protein/protein.h"
#include "structure/protein/protein_io.h"
Expand Down
2 changes: 1 addition & 1 deletion source/alignment/detail/multi_align_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
#include <boost/algorithm/cxx11/any_of.hpp>
#include <boost/lexical_cast.hpp>

#include "alignment/alignment_outputter/horiz_align_outputter.h" // ***** TEMPORARY *****
#include "alignment/detail/multi_align_group.h"
#include "alignment/gap/gap_penalty.h"
#include "alignment/io/outputter/horiz_align_outputter.h" // ***** TEMPORARY *****
#include "common/c++14/cbegin_cend.h"
#include "common/invert_permutation.h"
#include "exception/invalid_argument_exception.h"
Expand Down
2 changes: 1 addition & 1 deletion source/alignment/detail/multi_align_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#define MULTI_ALIGN_BUILDER_H_INCLUDED

#include "alignment/align_type_aliases.h"
#include "alignment/alignment_refiner/alignment_refiner.h"
#include "alignment/detail/multi_align_group.h"
#include "alignment/refiner/alignment_refiner.h"

#include <vector>

Expand Down
4 changes: 2 additions & 2 deletions source/alignment/detail/multi_align_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#include <boost/range/algorithm_ext/push_back.hpp>

#include "alignment/alignment_action.h"
#include "alignment/alignment_io.h"
#include "alignment/alignment_outputter/horiz_align_outputter.h"
#include "alignment/io/alignment_io.h"
#include "alignment/io/outputter/horiz_align_outputter.h"
#include "alignment/pair_alignment.h"
#include "common/c++14/cbegin_cend.h"
#include "exception/invalid_argument_exception.h"
Expand Down

0 comments on commit 872f651

Please sign in to comment.