Open NAThompson opened 1 year ago
Thanks for the feedback. We will add documentation on how to integrate BLAS++ into an application. However, I don't understand the issue that you are having. It seems to be too complicated. Simply doing this works in the example directory:
#-------------------------------------------------------------------------------
find_package( blaspp REQUIRED )
#--------------------
add_executable(
example_gemm
example_gemm.cc
)
target_link_libraries(
example_gemm
blaspp
)
I don't find it necessary with CMake packages to explicitly get the path to their include directory — CMake should use it automatically.
I can easily find instructions on how to build blaspp, and succeeded in doing so. However, how to reference it in another CMake-managed project does not appear to be documented.
I have resorted to the following technique to see what CMake variables are defined after a successful
find_package(blaspp REQUIRED)
:This prints:
I expected that one of these CMake variables should be set to
/opt/slate/include
, so that I can write (say)yet
blaspp_INCLUDE_DIRS
does not appear to be defined, and hence the compile step fails:If I hardcode the path to the blas include dir, I fail to link, necessitating hard coded path to the blas library, which again I cannot see in the defined CMake variables: