
# add the library that runs 
add_library(Gsq gsq_init.cc gsq_operate.cc gsq_put.cc gsq_typ.cc gsq_typ.h
		    gss_typ.cc gss_typ.h )

target_link_libraries(Gsq Afn)

# 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/libgsq" "${PROJECT_SOURCE_DIR}/lib/include") 

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

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

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

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

#install(TARGETS Gsq DESTINATION lib EXPORT GsqTargets)

