
# add the library that runs 
add_library(Alex NWprof.cc dp.cc n2a.cc new-dsc.cc psg.cc 
	routines.cc sba.cc sdp.cc sseq.cc s-w.cc )

target_link_libraries( Alex Afn Blst Gsq 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/libgsq" 
	"${PROJECT_SOURCE_DIR}/lib/libaln" 
	"${PROJECT_SOURCE_DIR}/lib/include") 

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

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

#install(TARGETS Alex DESTINATION lib EXPORT AlexTargets)

