
# add the library that runs 
add_library(Tools HMM_typ.cc clncma.cc cluster.cc cma_chain.cc  csp_bpps.cc 
	csp_typ.cc editcma.cc ema_typ.cc em_cma.cc goscan.cc 
	gpsi2cma.cc gpsiblst.cc gpsi_typ.cc hma_typ.cc jackknife.cc 
	marg_prob.cc my_posit.cc oscan2msa.cc psm_typ.cc purge.cc 
	rtf_put.cc rtf_typ.cc tblast.cc tpb_typ.cc )

target_link_libraries(Tools Afn Gsq Blst Alex Aln )

# 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/libafn" 
	"${PROJECT_SOURCE_DIR}/lib/libblst"
	"${PROJECT_SOURCE_DIR}/lib/libalex"
	"${PROJECT_SOURCE_DIR}/lib/libaln"
	"${PROJECT_SOURCE_DIR}/lib/libtools"
	"${PROJECT_SOURCE_DIR}/lib/include") 

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

#target_compile_definitions(Tools PRIVATE "$<$<BOOL:${USE_MYMATH}>:USE_MYMATH>")

# define the symbol stating we are using the declspec(dllexport) when
# building on windows
#target_compile_definitions(Tools PRIVATE "EXPORTING_MYMATH")

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

#install(TARGETS Tools DESTINATION lib EXPORT ToolsTargets)

