
# add the library that runs 
add_library(Pdb atom.cc contacts.cc geometry.cc pdb.cc pdb_misc.cc phi_psi.cc
pml_typ.cc radius.cc rasmol.cc ras_typ.cc res_typ.cc sip_typ.cc surface.cc
vsi_heap.cc vsi_pml.cc vsi_ras.cc vsi_typ.cc )

# state that anybody linking to us needs to include the current source dir
# to find MathFunctions.h, while we don't.
include_directories( "${PROJECT_SOURCE_DIR}/lib/libpdb"
	"${PROJECT_SOURCE_DIR}/lib/libafn"
	"${PROJECT_SOURCE_DIR}/lib/include") 

target_link_libraries(Pdb Afn )

list(APPEND EXTRA_LIBS Afn )

target_include_directories(Pdb
                           INTERFACE
                            $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
                            $<INSTALL_INTERFACE:include>)

# setup the version numbering
set_property(TARGET Pdb PROPERTY VERSION "1.0.0")
set_property(TARGET Pdb PROPERTY SOVERSION "1")

# install(TARGETS Pdb DESTINATION lib EXPORT PdbTargets)

