Skip to content
Snippets Groups Projects
Commit 66f7a259 authored by Valerio Mariani's avatar Valerio Mariani
Browse files

Merge branch 'develop' into ldt

parents 4a7bc2b0 c5e3177d
No related branches found
No related tags found
No related merge requests found
...@@ -177,7 +177,6 @@ if (ENABLE_STATIC) ...@@ -177,7 +177,6 @@ if (ENABLE_STATIC)
set(Boost_USE_STATIC_LIBS ON) set(Boost_USE_STATIC_LIBS ON)
find_package(Boost ${_BOOST_MIN_VERSION} find_package(Boost ${_BOOST_MIN_VERSION}
COMPONENTS filesystem system iostreams regex REQUIRED) COMPONENTS filesystem system iostreams regex REQUIRED)
message(${Boost_LIBRARIES})
find_package(ZLIB REQUIRED) find_package(ZLIB REQUIRED)
set(STATIC_LIBRARIES ${Boost_LIBRARIES} ${FFTW_LIBRARIES} ${TIFF_LIBRARIES} set(STATIC_LIBRARIES ${Boost_LIBRARIES} ${FFTW_LIBRARIES} ${TIFF_LIBRARIES}
${PNG_LIBRARIES} ${ZLIB_LIBRARIES}) ${PNG_LIBRARIES} ${ZLIB_LIBRARIES})
......
...@@ -649,7 +649,6 @@ ${BOOST_ROOT}/lib ...@@ -649,7 +649,6 @@ ${BOOST_ROOT}/lib
${BOOST_ROOT}/lib/boost-${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION} ${BOOST_ROOT}/lib/boost-${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}
${BOOST_ROOT}/stage/lib ${BOOST_ROOT}/stage/lib
${_boost_LIBRARIES_SEARCH_DIRS}) ${_boost_LIBRARIES_SEARCH_DIRS})
message("boost searchdirs:${_boost_LIBRARIES_SEARCH_DIRS}")
ENDIF( BOOST_ROOT ) ENDIF( BOOST_ROOT )
IF( BOOST_LIBRARYDIR ) IF( BOOST_LIBRARYDIR )
......
...@@ -211,7 +211,7 @@ macro(module) ...@@ -211,7 +211,7 @@ macro(module)
foreach(_DEPENDENCY ${_ARG_DEPENDS_ON}) foreach(_DEPENDENCY ${_ARG_DEPENDS_ON})
target_link_libraries(${_LIB_NAME}_static ${_DEPENDENCY}_static) target_link_libraries(${_LIB_NAME}_static ${_DEPENDENCY}_static)
endforeach() endforeach()
target_link_libraries(${_LIB_NAME} ${ZLIB_LIBRARIES}) target_link_libraries(${_LIB_NAME}_static ${ZLIB_LIBRARIES} ${_ARG_LINK})
endif() endif()
if (APPLE) if (APPLE)
set_target_properties(${_LIB_NAME} PROPERTIES set_target_properties(${_LIB_NAME} PROPERTIES
......
...@@ -18,6 +18,6 @@ set(OST_IO_PYMOD_MODULES ...@@ -18,6 +18,6 @@ set(OST_IO_PYMOD_MODULES
pymod(NAME io CPP ${OST_IO_PYMOD_SOURCES} PY ${OST_IO_PYMOD_MODULES}) pymod(NAME io CPP ${OST_IO_PYMOD_SOURCES} PY ${OST_IO_PYMOD_MODULES})
if (STATIC_LIBRARIES) if (STATIC_LIBRARIES)
message("adding zlib libraries") message("adding zlib libraries")
target_link_libraries(_io ${ZLIB_LIBRARIES}) target_link_libraries(_ost_io ${ZLIB_LIBRARIES})
endif() endif()
...@@ -177,7 +177,7 @@ def LoadPDB(filename, restrict_chains="", no_hetatms=None, ...@@ -177,7 +177,7 @@ def LoadPDB(filename, restrict_chains="", no_hetatms=None,
conop_inst.ConnectAll(builder, ent, 0) conop_inst.ConnectAll(builder, ent, 0)
ent_list.append(ent) ent_list.append(ent)
if len(ent_list)==0: if len(ent_list)==0:
raise IOError("File doesn't contain any entities") raise IOError("File '%s' doesn't contain any entities" % filename)
return ent_list return ent_list
else: else:
ent=mol.CreateEntity() ent=mol.CreateEntity()
...@@ -185,7 +185,7 @@ def LoadPDB(filename, restrict_chains="", no_hetatms=None, ...@@ -185,7 +185,7 @@ def LoadPDB(filename, restrict_chains="", no_hetatms=None,
reader.Import(ent, restrict_chains) reader.Import(ent, restrict_chains)
conop_inst.ConnectAll(builder, ent, 0) conop_inst.ConnectAll(builder, ent, 0)
else: else:
raise IOError("File doesn't contain any entities") raise IOError("File '%s' doesn't contain any entities" % filename)
if seqres: if seqres:
return ent, reader.seqres return ent, reader.seqres
return ent return ent
......
...@@ -39,6 +39,7 @@ endif() ...@@ -39,6 +39,7 @@ endif()
executable(NAME ldt SOURCES ldt.cc executable(NAME ldt SOURCES ldt.cc
DEPENDS_ON ost_io ost_mol_alg STATIC) DEPENDS_ON ost_io ost_mol_alg STATIC)
target_link_libraries(ldt ${BOOST_PROGRAM_OPTIONS})
module(NAME mol_alg SOURCES ${OST_MOL_ALG_SOURCES} module(NAME mol_alg SOURCES ${OST_MOL_ALG_SOURCES}
HEADERS ${OST_MOL_ALG_HEADERS} HEADERS ${OST_MOL_ALG_HEADERS}
...@@ -54,4 +55,4 @@ install(FILES "atom_scattering_properties.txt" DESTINATION "share/openstructure/ ...@@ -54,4 +55,4 @@ install(FILES "atom_scattering_properties.txt" DESTINATION "share/openstructure/
copy_if_different("." "${STAGE_DIR}/share/openstructure" copy_if_different("." "${STAGE_DIR}/share/openstructure"
"stereo_chemical_props.txt" "STEREO_CHEMICAL_PROPS" "stereo_chemical_props.txt" "STEREO_CHEMICAL_PROPS"
"ost_mol_alg") "ost_mol_alg")
install(FILES "stereo_chemical_props.txt" DESTINATION "share/openstructure/") install(FILES "stereo_chemical_props.txt" DESTINATION "share/openstructure/")
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment